ref: 877ce337da48a57cfe3ae93f0affc4d62e2aa25f
parent: ea968382f53acf6bd2db65a38eeed59bfdd10ee8
author: qwx <qwx@sciops.net>
date: Sun Oct 27 16:49:28 EDT 2024
remove obsolete file(1) patches, now in fork repo
--- a/file-mod
+++ /dev/null
@@ -1,11 +1,0 @@
-diff -r 121def0aed4d sys/src/cmd/file.c
---- a/sys/src/cmd/file.c Thu Jul 12 09:33:33 2018 +0200
-+++ b/sys/src/cmd/file.c Fri Jul 13 13:39:52 2018 +1200
-@@ -920,6 +920,7 @@
- } offstrs[] = {
- 32*1024, "\001CD001\001", "ISO9660 CD image", 7, "application/x-iso9660-image",
- 32*4, "DICM", "DICOM medical imaging data", 4, "application/dicom",
-+ 1080, "M.K.", "Amiga module", 4, "audio/mod",
- 0, 0, 0, 0, 0
- };
-
--- a/file-opus
+++ /dev/null
@@ -1,58 +1,0 @@
-diff -r 19baa5600a90 sys/src/cmd/file.c
---- a/sys/src/cmd/file.c Mon Apr 06 01:31:35 2020 +0200
-+++ b/sys/src/cmd/file.c Mon Apr 06 04:34:43 2020 +0200
-@@ -153,6 +153,8 @@
- int istga(void);
- int ismp3(void);
- int ismp4(void);
-+int isoggvorbis(void);
-+int isoggopus(void);
- int ismung(void);
- int isp9bit(void);
- int isp9font(void);
-@@ -201,6 +203,8 @@
- isicocur, /* windows icon or cursor file */
- isface, /* ascii face file */
- istga,
-+ isoggvorbis,
-+ isoggopus,
- ismp4,
- ismp3,
-
-@@ -838,7 +842,6 @@
- "\033%-12345X", "HPJCL file", 9, "application/hpjcl",
- "\033Lua", "Lua bytecode", 4, OCTET,
- "ID3", "mp3 audio with id3", 3, "audio/mpeg",
-- "OggS", "ogg audio", 4, "audio/ogg",
- ".snd", "sun audio", 4, "audio/basic",
- "\211PNG", "PNG image", 4, "image/png",
- "P1\n", "ppm", 3, "image/ppm",
-@@ -1262,6 +1265,28 @@
- return 0;
- }
-
-+int
-+isoggvorbis(void)
-+{
-+ if(memcmp(&buf[0], "OggS", 4) != 0)
-+ return 0;
-+ if(memcmp(&buf[29], "vorbis", 6) != 0)
-+ return 0;
-+ print("%s\n", mime ? "audio/ogg;codecs=vorbis" : "ogg audio");
-+ return 1;
-+}
-+
-+int
-+isoggopus(void)
-+{
-+ if(memcmp(&buf[0], "OggS", 4) != 0)
-+ return 0;
-+ if(memcmp(&buf[28], "OpusHead", 8) != 0)
-+ return 0;
-+ print("%s\n", mime ? "audio/ogg;codecs=opus" : "ogg audio");
-+ return 1;
-+}
-+
- /*
- * low entropy means encrypted
- */