Lines Matching refs:inname
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()
387 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); in file_or_stream()
389 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream()
394 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
408 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream()
413 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
423 close_and_restore(ms, inname, 0, &sb); in file_or_stream()