MCPcopy Create free account
hub / github.com/apache/httpd / softmagic

Function softmagic

modules/metadata/mod_mime_magic.c:1495–1501  ·  view source on GitHub ↗

* softmagic - lookup one file in database (already read from /etc/magic by * apprentice.c). Passed the name and FILE * of one file to be typed. */ ARGSUSED1 */ nbytes passed for regularity, maybe need later */

Source from the content-addressed store, hash-verified

1493 */
1494 /* ARGSUSED1 *//* nbytes passed for regularity, maybe need later */
1495static int softmagic(request_rec *r, unsigned char *buf, apr_size_t nbytes)
1496{
1497 if (match(r, buf, nbytes))
1498 return 1;
1499
1500 return 0;
1501}
1502
1503/*
1504 * Go through the whole list, stopping if you find a match. Process all the

Callers 1

tryitFunction · 0.85

Calls 1

matchFunction · 0.70

Tested by

no test coverage detected