shithub: riscv

Download patch

ref: ed196fcb7ee8d6f9dac21d380a510853cd287236
parent: 0a3160261d471ec1775024ab1616a9a534626ef3
author: BurnZeZ <[email protected]>
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
 };