Home
last modified time | relevance | path

Searched refs:inname (Results 1 – 3 of 3) sorted by relevance

/PHP-8.0/ext/fileinfo/libmagic/
H A Dmagic.c171 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument
175 return file_or_stream(ms, inname, NULL); in magic_file()
187 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument
206 switch (file_fsmagic(ms, inname, &sb)) { in file_or_stream()
218 if (inname && !stream) { in file_or_stream()
220 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream()
222 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
232 file_error(ms, errno, "cannot stat `%s'", inname); in file_or_stream()
243 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream()
248 if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1) in file_or_stream()
H A Dfuncs.c280 const char *inname, in file_buffer() argument
321 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer()
322 m = file_os2_apptype(ms, inname, &b); in file_buffer()
339 m = file_zmagic(ms, &b, inname); in file_buffer()
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch2443 + const char *inname,
2476 m = file_zmagic(ms, &b, inname);
2977 + return file_or_stream(ms, inname, NULL);
3012 switch (file_fsmagic(ms, inname, &sb)) {
3022 - if (inname != NULL) {
3025 - if ((fd = open(inname, flags)) < 0) {
3026 - okstat = stat(inname, &sb) == 0;
3045 + if (inname && !stream) {
3061 - if (inname == NULL)
3087 - if (nbytes == 0 && inname) {
[all …]

Completed in 17 milliseconds