Lines Matching refs:mime
89 char* mime; /* file mime type */ member
156 char* mime; /* MIME type */ \
493 mp->mime = mp->cap[0] = 0; in ckmagic()
506 mp->mime = mp->cap[0]; in ckmagic()
511 mp->cap[level] = mp->mime; in ckmagic()
523 mp->mime = mp->cap[0] = 0; in ckmagic()
548 mp->mime = mp->cap[level]; in ckmagic()
696 if (ep->mime) in ckmagic()
697 mp->mime = ep->mime; in ckmagic()
730 if (ep->mime) in ckmagic()
731 mp->mime = ep->mime; in ckmagic()
841 *ep->mime = 0; in ckmagic()
847 ep->mime = vmnewof(mp->vm, ep->mime, char, sfvalue(rp), 0); in ckmagic()
848 strcpy(ep->mime, t + 13); in ckmagic()
859 if (*ep->mime) in ckmagic()
867 if (!*ep->mime) in ckmagic()
875 ep->mime = vmnewof(mp->vm, ep->mime, char, strlen(t), strlen(e)); in ckmagic()
876 e = strcopy(ep->mime, e); in ckmagic()
897 mp->mime = ep->mime; in ckmagic()
936 if (ep->mime && *ep->mime) in ckmagic()
937 mp->mime = ep->mime; in ckmagic()
944 mp->mime = mp->cap[level]; in ckmagic()
1072 mp->mime = mp->mbuf; in cklang()
1250 mp->mime = "application/sh"; in cklang()
1256 mp->mime = "message/rfc822"; in cklang()
1263 mp->mime = "application/mk"; in cklang()
1270 mp->mime = "application/make"; in cklang()
1276 mp->mime = "application/x-troff"; in cklang()
1282 mp->mime = "application/x-tex"; in cklang()
1307 mp->mime = "application/x-cc"; in cklang()
1312 mp->mime = "application/x-lex"; in cklang()
1318 mp->mime = "application/x-cc"; in cklang()
1325 mp->mime = "application/x-yacc"; in cklang()
1331 mp->mime = "application/x-c++"; in cklang()
1344 mp->mime = "application/x-mam"; in cklang()
1351 mp->mime = "application/x-fortran"; in cklang()
1358 mp->mime = "text/html"; in cklang()
1365 mp->mime = "application/x-cobol"; in cklang()
1372 mp->mime = "application/x-cobol"; in cklang()
1379 mp->mime = "application/x-pl1"; in cklang()
1386 mp->mime = "text/tex"; in cklang()
1393 mp->mime = "application/x-as"; in cklang()
1399 mp->mime = "text/plain"; in cklang()
1405 mp->mime = "x-system/core"; in cklang()
1479 mp->mime = "application/octet-stream"; in cklang()
1482 mp->mime = "text/plain"; in cklang()
1493 mp->mime = "text/dos"; in cklang()
1504 mp->mime = "text/ebcdic"; in cklang()
1526 mp->mime = 0; in type()
1531 mp->mime = "x-system/dir"; in type()
1536 mp->mime = "x-system/lnk"; in type()
1545 mp->mime = "x-system/blk"; in type()
1551 mp->mime = "x-system/chr"; in type()
1557 mp->mime = "x-system/fifo"; in type()
1563 mp->mime = "x-system/sock"; in type()
1588 if (!mp->mime) in type()
1589 mp->mime = "application/unknown"; in type()
1590 else if ((t = strchr(mp->mime, '%')) && *(t + 1) == 's' && !*(t + 2)) in type()
1597 b = mp->mime; in type()
1598 me = (m = mp->mime = mp->fbuf) + sizeof(mp->fbuf) - 1; in type()
2097 ep->mime = vmnewof(mp->vm, 0, char, 32, 0); in load()
2150 ep->mime = vmstrdup(mp->vm, p); in load()
2364 mp->mime = 0; in magictype()
2392 s = mp->mime; in magictype()
2442 sfprintf(sp, "\t%s\t%s\n", ep->mime ? ep->mime : "", fmtesc(ep->desc)); in magiclist()