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

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dmagic.c333 magic_file(struct magic_set *ms, const char *inname) argument
337 return file_or_stream(ms, inname, NULL);
349 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
358 if (!inname && !stream) {
372 switch (file_fsmagic(ms, inname, &sb, stream)) {
384 if (!stream && inname) {
386 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL);
390 if (unreadable_info(ms, sb.st_mode, inname) == -1)
404 file_error(ms, errno, "cannot read `%s'", inname);
409 if (file_buffer(ms, stream, inname, bu
[all...]
H A Dfuncs.c164 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) {

Completed in 3 milliseconds