Browse Source

Plan 9 from Bell Labs 2008-09-24

David du Colombier 12 years ago
parent
commit
112c250b6a
4 changed files with 9 additions and 6 deletions
  1. 2 2
      dist/replica/_plan9.db
  2. 2 2
      dist/replica/plan9.db
  3. 2 0
      dist/replica/plan9.log
  4. 3 2
      sys/src/cmd/file.c

+ 2 - 2
dist/replica/_plan9.db

@@ -235,7 +235,7 @@
 386/bin/faces - 775 sys sys 1215402243 193483
 386/bin/factor - 775 sys sys 1209614276 61640
 386/bin/fcp - 775 sys sys 1210392688 82521
-386/bin/file - 775 sys sys 1210131851 128896
+386/bin/file - 775 sys sys 1222197005 128278
 386/bin/fmt - 775 sys sys 1209614279 65508
 386/bin/fortune - 775 sys sys 1209614281 67297
 386/bin/fossil - 20000000775 sys sys 1087009456 0
@@ -10412,7 +10412,7 @@ sys/src/cmd/fax/receiverc - 775 sys sys 1221364152 1101
 sys/src/cmd/fax/send.c - 664 sys sys 944960990 923
 sys/src/cmd/fax/subr.c - 664 sys sys 1015090401 1245
 sys/src/cmd/fcp.c - 664 sys sys 1136651872 3799
-sys/src/cmd/file.c - 664 sys sys 1217017505 28940
+sys/src/cmd/file.c - 664 sys sys 1222186474 28992
 sys/src/cmd/fmt.c - 664 sys sys 1137603598 4078
 sys/src/cmd/fortune.c - 664 sys sys 1072729222 1779
 sys/src/cmd/fossil - 20000000775 sys sys 1196687850 0

+ 2 - 2
dist/replica/plan9.db

@@ -235,7 +235,7 @@
 386/bin/faces - 775 sys sys 1215402243 193483
 386/bin/factor - 775 sys sys 1209614276 61640
 386/bin/fcp - 775 sys sys 1210392688 82521
-386/bin/file - 775 sys sys 1210131851 128896
+386/bin/file - 775 sys sys 1222197005 128278
 386/bin/fmt - 775 sys sys 1209614279 65508
 386/bin/fortune - 775 sys sys 1209614281 67297
 386/bin/fossil - 20000000775 sys sys 1087009456 0
@@ -10412,7 +10412,7 @@ sys/src/cmd/fax/receiverc - 775 sys sys 1221364152 1101
 sys/src/cmd/fax/send.c - 664 sys sys 944960990 923
 sys/src/cmd/fax/subr.c - 664 sys sys 1015090401 1245
 sys/src/cmd/fcp.c - 664 sys sys 1136651872 3799
-sys/src/cmd/file.c - 664 sys sys 1217017505 28940
+sys/src/cmd/file.c - 664 sys sys 1222186474 28992
 sys/src/cmd/fmt.c - 664 sys sys 1137603598 4078
 sys/src/cmd/fortune.c - 664 sys sys 1072729222 1779
 sys/src/cmd/fossil - 20000000775 sys sys 1196687850 0

+ 2 - 0
dist/replica/plan9.log

@@ -36114,3 +36114,5 @@
 1221364804 0 c sys/src/cmd/fax/receiverc - 775 sys sys 1221364152 1101
 1221364804 1 d sys/src/cmd/fax/receive - 775 sys sys 944960990 0
 1221661805 0 c sys/src/9/port/allocb.c - 664 sys sys 1221660911 3451
+1222187404 0 c sys/src/cmd/file.c - 664 sys sys 1222186474 28992
+1222198205 0 c 386/bin/file - 775 sys sys 1222197005 128278

+ 3 - 2
sys/src/cmd/file.c

@@ -202,8 +202,8 @@ int	(*call[])(void) =
 
 int mime;
 
-#define OCTET	"application/octet-stream\n"
-#define PLAIN	"text/plain\n"
+char OCTET[] =	"application/octet-stream\n";
+char PLAIN[] =	"text/plain\n";
 
 void
 main(int argc, char *argv[])
@@ -785,6 +785,7 @@ struct	FILE_STRING
 	"BM",			"bmp",				2,	"image/bmp",
 	"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1",	"microsoft office document",	8,	"application/octet-stream",
 	"<MakerFile ",		"FrameMaker file",		11,	"application/framemaker",
+	"\033E\033",	"HP PCL printer data",		3,	OCTET,
 	"\033%-12345X",	"HPJCL file",		9,	"application/hpjcl",
 	"ID3",			"mp3 audio with id3",	3,	"audio/mpeg",
 	"\211PNG",		"PNG image",		4,	"image/png",