Home
last modified time | relevance | path

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

/PHP-8.1/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.c320 const char *inname, in file_buffer() argument
361 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer()
362 m = file_os2_apptype(ms, inname, &b); in file_buffer()
379 m = file_zmagic(ms, &b, inname); in file_buffer()
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch2159 + const char *inname,
2192 m = file_zmagic(ms, &b, inname);
2702 + return file_or_stream(ms, inname, NULL);
2737 switch (file_fsmagic(ms, inname, &sb)) {
2747 - if (inname != NULL) {
2750 - if ((fd = open(inname, flags)) < 0) {
2751 - okstat = stat(inname, &sb) == 0;
2770 + if (inname && !stream) {
2789 - if (inname == NULL)
2815 - if (nbytes == 0 && inname) {
[all …]

Completed in 21 milliseconds