git: 9front

Download patch

ref: 8fc6092644463866166648ea2a005d1d6688369d
parent: 4336636e25ebdd33c2c6b9074aedd02ed1d82c2e
author: BurnZeZ <brz-9dev@feline.systems>
date: Sun Sep 27 23:42:26 EDT 2015

file: detect DICOM and XM audio headers

--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -865,6 +865,7 @@
 	"BEGIN:VCARD\r\n",	"vCard",		13,	"text/directory;profile=vcard",
 	"BEGIN:VCARD\n",	"vCard",		12,	"text/directory;profile=vcard",
 	"AT&T",			"DjVu document",	4,	"image/vnd.djvu",
+	"Extended module: ",	"XM audio",		17,	"audio/xm",
 	0,0,0,0
 };
 
@@ -902,6 +903,7 @@
 	struct FILE_STRING;
 } offstrs[] = {
 	32*1024, "\001CD001\001",	"ISO9660 CD image",	7,	"application/x-iso9660-image",
+	32*4, "DICM",	"DICOM medical imaging data",	4,	"application/dicom",
 	0, 0, 0, 0, 0
 };
 
--