Searched refs:inname (Results 1 – 3 of 3) sorted by relevance
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | magic.c | 333 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument 337 return file_or_stream(ms, inname, NULL); in magic_file() 349 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument 358 if (!inname && !stream) { in file_or_stream() 372 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream() 384 if (!stream && inname) { in file_or_stream() 386 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream() 390 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream() 404 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream() 409 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream() [all …]
|
H A D | funcs.c | 164 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, in file_buffer() argument 193 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer() 194 switch (file_os2_apptype(ms, inname, buf, nb)) { in file_buffer() 207 if ((m = file_zmagic(ms, stream, inname, ubuf, nb)) != 0) { in file_buffer()
|
/PHP-5.6/ext/fileinfo/ |
H A D | libmagic.patch | 2345 - return file_or_fd(ms, inname, STDIN_FILENO); 2346 + return file_or_stream(ms, inname, NULL); 2370 + if (!inname && !stream) { 2386 - switch (file_fsmagic(ms, inname, &sb)) { 2387 + switch (file_fsmagic(ms, inname, &sb, stream)) { 2395 - if (inname == NULL) { 2402 - int okstat = stat(inname, &sb) == 0; 2411 + if (!stream && inname) { 2417 - if ((fd = open(inname, flags)) < 0) { 2478 - close_and_restore(ms, inname, fd, &sb); [all …]
|
Completed in 14 milliseconds