Searched refs:inname (Results 1 – 3 of 3) sorted by relevance
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | magic.c | 199 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument 203 return file_or_stream(ms, inname, NULL); in magic_file() 215 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument 226 if (!inname && !stream) { in file_or_stream() 238 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream() 250 if (!stream && inname) { in file_or_stream() 252 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream() 256 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream() 270 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream() 275 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
|
H A D | funcs.c | 174 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, in file_buffer() argument 202 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer() 203 m = file_os2_apptype(ms, inname, buf, nb); in file_buffer() 219 m = file_zmagic(ms, stream, inname, ubuf, nb); in file_buffer()
|
/PHP-7.2/ext/fileinfo/ |
H A D | libmagic.patch | 2110 - m = file_zmagic(ms, fd, inname, ubuf, nb); 2629 + return file_or_stream(ms, inname, NULL); 2656 + if (!inname && !stream) { 2669 - switch (file_fsmagic(ms, inname, &sb)) { 2684 - if (inname == NULL) { 2691 - int okstat = stat(inname, &sb) == 0; 2700 + if (!stream && inname) { 2706 - if ((fd = open(inname, flags)) < 0) { 2752 - if (nbytes == 0 && inname) { 2772 - inname == NULL ? "/dev/stdin" : inname); [all …]
|
Completed in 12 milliseconds