Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dmagic.c180 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument
184 return file_or_stream(ms, inname, NULL); in magic_file()
196 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument
215 switch (file_fsmagic(ms, inname, &sb)) { in file_or_stream()
227 if (inname && !stream) { in file_or_stream()
229 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream()
231 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
241 file_error(ms, errno, "cannot stat `%s'", inname); in file_or_stream()
252 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream()
257 if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1) in file_or_stream()
H A Dfuncs.c318 const char *inname, in file_buffer() argument
359 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer()
360 m = file_os2_apptype(ms, inname, &b); in file_buffer()
377 m = file_zmagic(ms, &b, inname); in file_buffer()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch1940 + const char *inname,
1973 m = file_zmagic(ms, &b, inname);
2485 + return file_or_stream(ms, inname, NULL);
2520 switch (file_fsmagic(ms, inname, &sb)) {
2530 - if (inname != NULL) {
2533 - if ((fd = open(inname, flags)) < 0) {
2534 - okstat = stat(inname, &sb) == 0;
2551 + if (inname && !stream) {
2570 - if (inname == NULL)
2596 - if (nbytes == 0 && inname) {
[all …]

Completed in 15 milliseconds