Searched refs:inname (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfuncs.c165 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, argument
194 if ((ms->flags & MAGIC_NO_CHECK_APPTYPE) == 0 && inname) {
195 switch (file_os2_apptype(ms, inname, buf, nb)) {
208 if ((m = file_zmagic(ms, stream, inname, ubuf, nb)) != 0) {
H A Dmagic.c335 magic_file(struct magic_set *ms, const char *inname) argument
339 return file_or_stream(ms, inname, NULL);
351 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
359 if (!inname && !stream) {
373 switch (file_fsmagic(ms, inname, &sb, stream)) {
385 if (!stream && inname) {
387 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL);
391 if (unreadable_info(ms, sb.st_mode, inname) == -1)
405 file_error(ms, errno, "cannot read `%s'", inname);
410 if (file_buffer(ms, stream, inname, bu
[all...]

Completed in 3 milliseconds