Searched refs:inname (Results 1 – 3 of 3) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | magic.c | 180 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument 184 return file_or_stream(ms, inname, NULL); in magic_file() 196 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument 215 switch (file_fsmagic(ms, inname, &sb)) { in file_or_stream() 227 if (inname && !stream) { in file_or_stream() 229 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream() 231 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream() 241 file_error(ms, errno, "cannot stat `%s'", inname); in file_or_stream() 252 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream() 257 if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1) in file_or_stream()
|
H A D | funcs.c | 318 const char *inname __attribute__ ((__unused__)), in file_buffer() argument 359 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer() 360 m = file_os2_apptype(ms, inname, &b); in file_buffer() 377 m = file_zmagic(ms, &b, inname); in file_buffer()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 1975 m = file_zmagic(ms, &b, inname); 2531 + return file_or_stream(ms, inname, NULL); 2566 switch (file_fsmagic(ms, inname, &sb)) { 2576 - if (inname != NULL) { 2579 - if ((fd = open(inname, flags)) < 0) { 2580 - okstat = stat(inname, &sb) == 0; 2597 + if (inname && !stream) { 2616 - if (inname == NULL) 2642 - if (nbytes == 0 && inname) { 2662 - inname == NULL ? "/dev/stdin" : inname); [all …]
|
Completed in 38 milliseconds