Home
last modified time | relevance | path

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

/PHP-5.3/ext/fileinfo/libmagic/
H A Dmagic.c378 magic_file(struct magic_set *ms, const char *inname) in magic_file() argument
380 return file_or_stream(ms, inname, NULL); in magic_file()
390 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) in file_or_stream() argument
399 if (!inname && !stream) { in file_or_stream()
413 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream()
425 if (!stream && inname) { in file_or_stream()
430 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); in file_or_stream()
435 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
449 file_error(ms, errno, "cannot read `%s'", inname); in file_or_stream()
454 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
[all …]
H A Dfuncs.c161 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, in file_buffer() argument
195 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) { in file_buffer()
196 switch (file_os2_apptype(ms, inname, buf, nb)) { in file_buffer()
209 if ((m = file_zmagic(ms, stream, inname, ubuf, nb)) != 0) { in file_buffer()
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch1782 switch (file_os2_apptype(ms, inname, buf, nb)) {
2169 - return file_or_fd(ms, inname, STDIN_FILENO);
2170 + return file_or_stream(ms, inname, NULL);
2191 + if (!inname && !stream) {
2207 - switch (file_fsmagic(ms, inname, &sb)) {
2208 + switch (file_fsmagic(ms, inname, &sb, stream)) {
2216 - if (inname == NULL) {
2226 + if (!stream && inname) {
2238 - if ((fd = open(inname, flags)) < 0) {
2296 - close_and_restore(ms, inname, fd, &sb);
[all …]

Completed in 13 milliseconds