Browse Source

Plan 9 from Bell Labs 2008-10-10

David du Colombier 12 years ago
parent
commit
3a97278fa5
5 changed files with 27 additions and 11 deletions
  1. 3 3
      dist/replica/_plan9.db
  2. 3 3
      dist/replica/plan9.db
  3. 3 0
      dist/replica/plan9.log
  4. 14 3
      sys/man/8/gpsfs
  5. 4 2
      sys/src/cmd/vac/vacfs.c

+ 3 - 3
dist/replica/_plan9.db

@@ -500,7 +500,7 @@
 386/bin/usb/usbprint - 775 sys sys 1203567409 373
 386/bin/usb/usbprobe - 775 sys sys 1203567409 232
 386/bin/vac - 775 sys sys 1218136581 229446
-386/bin/vacfs - 775 sys sys 1218136585 243628
+386/bin/vacfs - 775 sys sys 1223579346 243644
 386/bin/venti - 20000000775 sys sys 1191273719 0
 386/bin/venti/buildindex - 775 sys sys 1214510186 259348
 386/bin/venti/checkarenas - 775 sys sys 1214510193 261127
@@ -7863,7 +7863,7 @@ sys/man/8/fs - 664 sys sys 1196638946 15086
 sys/man/8/fsconfig - 664 sys sys 1196638946 8890
 sys/man/8/fshalt - 664 sys sys 1196638947 862
 sys/man/8/getflags - 664 sys sys 1196638947 1713
-sys/man/8/gpsfs - 664 sys sys 1196638947 4918
+sys/man/8/gpsfs - 664 sys sys 1223562059 5097
 sys/man/8/httpd - 664 sys sys 1196638947 6866
 sys/man/8/init - 664 sys sys 1196638947 1430
 sys/man/8/ipconfig - 664 sys sys 1205960389 8284
@@ -14338,7 +14338,7 @@ sys/src/cmd/vac/stdinc.h - 664 sys sys 1213498240 92
 sys/src/cmd/vac/unvac.c - 664 sys sys 1213504395 5186
 sys/src/cmd/vac/vac.c - 664 sys sys 1213558401 12310
 sys/src/cmd/vac/vac.h - 664 sys sys 1213558389 3987
-sys/src/cmd/vac/vacfs.c - 664 sys sys 1213558401 13323
+sys/src/cmd/vac/vacfs.c - 664 sys sys 1223571409 13386
 sys/src/cmd/vc - 20000000775 sys sys 1196687841 0
 sys/src/cmd/vc/cgen.c - 664 sys sys 1143241861 20147
 sys/src/cmd/vc/enam.c - 664 sys sys 1089299165 1093

+ 3 - 3
dist/replica/plan9.db

@@ -500,7 +500,7 @@
 386/bin/usb/usbprint - 775 sys sys 1203567409 373
 386/bin/usb/usbprobe - 775 sys sys 1203567409 232
 386/bin/vac - 775 sys sys 1218136581 229446
-386/bin/vacfs - 775 sys sys 1218136585 243628
+386/bin/vacfs - 775 sys sys 1223579346 243644
 386/bin/venti - 20000000775 sys sys 1191273719 0
 386/bin/venti/buildindex - 775 sys sys 1214510186 259348
 386/bin/venti/checkarenas - 775 sys sys 1214510193 261127
@@ -7863,7 +7863,7 @@ sys/man/8/fs - 664 sys sys 1196638946 15086
 sys/man/8/fsconfig - 664 sys sys 1196638946 8890
 sys/man/8/fshalt - 664 sys sys 1196638947 862
 sys/man/8/getflags - 664 sys sys 1196638947 1713
-sys/man/8/gpsfs - 664 sys sys 1196638947 4918
+sys/man/8/gpsfs - 664 sys sys 1223562059 5097
 sys/man/8/httpd - 664 sys sys 1196638947 6866
 sys/man/8/init - 664 sys sys 1196638947 1430
 sys/man/8/ipconfig - 664 sys sys 1205960389 8284
@@ -14338,7 +14338,7 @@ sys/src/cmd/vac/stdinc.h - 664 sys sys 1213498240 92
 sys/src/cmd/vac/unvac.c - 664 sys sys 1213504395 5186
 sys/src/cmd/vac/vac.c - 664 sys sys 1213558401 12310
 sys/src/cmd/vac/vac.h - 664 sys sys 1213558389 3987
-sys/src/cmd/vac/vacfs.c - 664 sys sys 1213558401 13323
+sys/src/cmd/vac/vacfs.c - 664 sys sys 1223571409 13386
 sys/src/cmd/vc - 20000000775 sys sys 1196687841 0
 sys/src/cmd/vc/cgen.c - 664 sys sys 1143241861 20147
 sys/src/cmd/vc/enam.c - 664 sys sys 1089299165 1093

+ 3 - 0
dist/replica/plan9.log

@@ -36161,3 +36161,6 @@
 1223515804 1 c sys/src/boot/pc/load.c - 664 sys sys 1223515569 11433
 1223515804 2 c sys/src/boot/pc/part.c - 664 sys sys 1223515556 7355
 1223515804 3 c sys/src/boot/pc/sdaoe.c - 664 sys sys 1223515593 11739
+1223562605 0 c sys/man/8/gpsfs - 664 sys sys 1223562059 5097
+1223571604 0 c sys/src/cmd/vac/vacfs.c - 664 sys sys 1223571409 13386
+1223580605 0 c 386/bin/vacfs - 775 sys sys 1223579346 243644

+ 14 - 3
sys/man/8/gpsfs

@@ -39,8 +39,11 @@ gpsfs, gpsevermore \- GPS time and position service
 ]
 .SH DESCRIPTION
 .B Aux/gpsfs
-reads an NMEA-compatible serial GPS device and provides time and position
-through a file system, typically in
+reads an NMEA-compatible serial GPS (Global Positioning System)
+device and provides time and position
+through a file system, by default mounted on
+.B /mnt
+and implementing
 .BR /mnt/gps .
 .PP
 It implements four files in the
@@ -55,6 +58,8 @@ and
 The read-only
 .B position
 file contains one line of information in 9 tab-separated fields:
+.TF "\fImagnetic deviation
+.PD
 .TP
 .I "fix quality
 0 means position data invalid, 1 means a 2D position is available, 2 means a 3D position is available.
@@ -88,6 +93,8 @@ in km/h
 The read-only
 .B time
 file contains one line of information in 4 tab-separated fields:
+.TF "\fIsystem time
+.PD
 .TP
 .I "gps time
 in
@@ -127,6 +134,8 @@ The read-only
 file contains information about the current satellite constellation.  It consists
 of one line of general information, followed by zero or more lines, one for each satellite in use.
 The first line contains two fields:
+.TF "\fIsatellites in view
+.PD
 .TP
 .I "fix quality
 same as in the
@@ -137,6 +146,8 @@ file.
 number of satellites above the horizon
 .PP
 Subsequent lines have four fields:
+.TF "\fIelevation
+.PD
 .TP
 .I prn
 satellite ID
@@ -183,7 +194,7 @@ The
 .B \-m
 flag specifies a mount mount other than
 .BR /mnt .
-.PP
+.SS Evermore
 .B Aux/gpsevermore
 is used to configure GPSs using an Evermore chipset.
 .PP

+ 4 - 2
sys/src/cmd/vac/vacfs.c

@@ -207,7 +207,8 @@ threadmain(int argc, char *argv[])
 		close(p[0]);
 		if(defsrv){
 			srvname = smprint("/srv/%s", defsrv);
-			fd = create(srvname, OWRITE|ORCLOSE, 0666);
+			/* child doesn't share fd group, so can't use ORCLOSE */
+			fd = create(srvname, OWRITE, 0666);
 			if(fd < 0)
 				sysfatal("create %s: %r", srvname);
 			if(fprint(fd, "%d", srvfd) < 0)
@@ -233,7 +234,8 @@ srv(void *a)
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-sd] [-h host] [-c ncache] [-m mountpoint] vacfile\n", argv0);
+	fprint(2, "usage: %s [-sd] [-c ncache] [-h host] [-m mountpoint] [-S svc] vacfile\n",
+		argv0);
 	threadexitsall("usage");
 }