Lines Matching defs:mime
89 char* mime; /* file mime type */
156 char* mime; /* MIME type */ \
161 char mbuf[64]; /* mime string */ \
168 char* cap[MAXNEST]; /* ckmagic mime stack */ \
496 mp->mime = mp->cap[0] = 0;
509 mp->mime = mp->cap[0];
514 mp->cap[level] = mp->mime;
533 mp->mime = mp->cap[0] = 0;
558 mp->mime = mp->cap[level];
706 if (ep->mime)
707 mp->mime = ep->mime;
740 if (ep->mime)
741 mp->mime = ep->mime;
854 *ep->mime = 0;
860 ep->mime = vmnewof(mp->vm, ep->mime, char, sfvalue(rp), 0);
861 strcpy(ep->mime, t + 13);
872 if (*ep->mime)
880 if (!*ep->mime)
888 ep->mime = vmnewof(mp->vm, ep->mime, char, strlen(t), strlen(e));
889 e = strcopy(ep->mime, e);
910 mp->mime = ep->mime;
971 if (ep->mime && *ep->mime)
972 mp->mime = ep->mime;
979 mp->mime = mp->cap[level];
1107 mp->mime = mp->mbuf;
1285 mp->mime = "application/sh";
1291 mp->mime = "message/rfc822";
1298 mp->mime = "application/mk";
1305 mp->mime = "application/make";
1311 mp->mime = "application/x-troff";
1317 mp->mime = "application/x-tex";
1342 mp->mime = "application/x-cc";
1347 mp->mime = "application/x-lex";
1353 mp->mime = "application/x-cc";
1360 mp->mime = "application/x-yacc";
1366 mp->mime = "application/x-c++";
1379 mp->mime = "application/x-mam";
1386 mp->mime = "application/x-fortran";
1393 mp->mime = "text/html";
1400 mp->mime = "application/x-cobol";
1407 mp->mime = "application/x-cobol";
1414 mp->mime = "application/x-pl1";
1421 mp->mime = "text/tex";
1428 mp->mime = "application/x-as";
1434 mp->mime = "text/plain";
1440 mp->mime = "x-system/core";
1514 mp->mime = "application/octet-stream";
1517 mp->mime = "text/plain";
1528 mp->mime = "text/dos";
1539 mp->mime = "text/ebcdic";
1561 mp->mime = 0;
1566 mp->mime = "x-system/dir";
1571 mp->mime = "x-system/lnk";
1580 mp->mime = "x-system/blk";
1586 mp->mime = "x-system/chr";
1592 mp->mime = "x-system/fifo";
1598 mp->mime = "x-system/sock";
1623 if (!mp->mime)
1624 mp->mime = "application/unknown";
1625 else if ((t = strchr(mp->mime, '%')) && *(t + 1) == 's' && !*(t + 2))
1632 b = mp->mime;
1633 me = (m = mp->mime = mp->fbuf) + sizeof(mp->fbuf) - 1;
2132 ep->mime = vmnewof(mp->vm, 0, char, 32, 0);
2185 ep->mime = vmstrdup(mp->vm, p);
2399 mp->mime = 0;
2427 s = mp->mime;
2477 sfprintf(sp, "\t%s\t%s\n", ep->mime ? ep->mime : "", fmtesc(ep->desc));