History

20100205-1101

forsyth committed 16 years ago

Commit bb3d01d1 parent 4b5b05864 files · +225 −246Browse files

Unified · Split

64 files
  1. CHANGES +5 −2
  2. appl/cmd/auth/secstore.b +3 −3
  3. appl/lib/secstore.b +17 −13
  4. dis/lib/secstore.dis +0 −0
  5. doc/port.ms +2 −2
  6. doc/port.pdf +0 −0
  7. include/version.h +1 −1
  8. man/1/bind +6 −5
  9. man/1/cpu +1 −1
  10. man/1/grid-register +6 −6
  11. man/1/grid-session +5 −3
  12. man/1/listen +5 −5
  13. man/1/ls +1 −1
  14. man/1/ns +1 −2
  15. man/1/secstore +1 −1
  16. man/1/sh-file2chan +3 −1
  17. man/1/telnet +1 −1
  18. man/10/devattach +3 −5
  19. man/10/odbc +12 −1
  20. man/10/styx +6 −5
  21. man/2/drawmux +1 −1
  22. man/2/registries +3 −3
  23. man/2/secstore +17 −16
  24. man/2/security-login +1 −1
  25. man/2/srv +1 −1
  26. man/2/styx +7 −6
  27. man/2/styxconv +7 −6
  28. man/2/styxflush +5 −5
  29. man/2/styxpersist +6 −6
  30. man/2/styxservers +8 −8
  31. man/2/sys-0intro +2 −2
  32. man/2/sys-bind +1 −1
  33. man/2/sys-export +2 −2
  34. man/2/sys-fauth +1 −1
  35. man/2/sys-file2chan +1 −1
  36. man/2/sys-fversion +3 −3
  37. man/2/sys-iounit +1 −1
  38. man/2/sys-pipe +2 −2
  39. man/2/virgil +1 −1
  40. man/3/0intro +1 −1
  41. man/3/ip +4 −4
  42. man/3/logfs +2 −2
  43. man/3/mnt +6 −6
  44. man/3/plap +1 −1
  45. man/3/tls +1 −1
  46. man/4/0intro +1 −1
  47. man/4/dossrv +1 −1
  48. man/4/export +6 −7
  49. man/4/ftpfs +1 −1
  50. man/4/grid-cpu +1 −1
  51. man/4/iostats +1 −1
  52. man/4/kfs +1 −1
  53. man/4/mntgen +1 −1
  54. man/4/registry +1 −1
  55. man/6/image +1 −1
  56. man/8/collabsrv +4 −4
  57. man/8/cs +3 −3
  58. man/8/httpd +1 −1
  59. man/8/ping +2 −2
  60. man/8/rdbgsrv +6 −59
  61. man/8/styxchat +9 −8
  62. man/8/styxmon +5 −5
  63. man/8/svc +9 −1
  64. module/secstore.m +9 −9
CHANGES+5−2
@@ -1,7 +1,10 @@
1+20100205
2+ update man pages to replace most references to Styx by 9P
3+ update man pages to replace references to sys-dial(2) by dial(2)
14 20100203
2− appl/lib/cfg.b treat \r as white space (issue 69, 70)
5+ appl/lib/cfg.b treat \r as white space [issue 69, issue 70]
36 add u64int to lib9.h files that needed it
4− add sha2.c sha256block.c sha512block.c to libsec/port and include/libsec.h
7+ add sha2.c sha256block.c sha512block.c to libsec/port and include/libsec.h [issue 185, mechiel]
58 add new sha functions to module/keyring.m and libinterp/keyring.c
69 20100115
710 appl/cmd/tarfs.b man/4/tarfs changes to permission handling from mechiel [issue 220]
appl/cmd/auth/secstore.b+3−3
@@ -29,7 +29,7 @@ Secstorec: module · 28 unmodified lines
2929 Maxfilesize: con 128*1024;
3030
3131 stderr: ref Sys->FD;
32−conn: ref Sys->Connection;
32+conn: ref Dial->Connection;
3333 seckey: array of byte;
3434 filekey: array of byte;
3535 file: array of byte;
@@ -100,7 +100,7 @@ init(nil: ref Draw->Context, args: list of string) · 64 unmodified lines
100100 if(nf > 1)
101101 pin = hd tl flds;
102102 }
103− conn: ref Sys->Connection;
103+ conn: ref Dial->Connection;
104104 Auth:
105105 for(;;){
106106 if(!iflag)
@@ -229,7 +229,7 @@ verb(op: int, n: string) · 122 unmodified lines
229229 sys->fprint(stderr, "%c %q\n", op, n);
230230 }
231231
232−getfile(conn: ref Sys->Connection, fname: string, key: array of byte): array of byte
232+getfile(conn: ref Dial->Connection, fname: string, key: array of byte): array of byte
233233 {
234234 f := secstore->getfile(conn, fname, 0);
235235 if(f == nil)
appl/lib/secstore.b+17−13
@@ -7,6 +7,9 @@ implement Secstore; · 6 unmodified lines
77 include "sys.m";
88 sys: Sys;
99
10+include "dial.m";
11+ dialler: Dial;
12+
1013 include "keyring.m";
1114 kr: Keyring;
1215 DigestState, IPint: import kr;
@@ -27,6 +30,7 @@ init() · 14 unmodified lines
2730 kr = load Keyring Keyring->PATH;
2831 ssl = load SSL SSL->PATH;
2932 base64 = load Encoding Encoding->BASE64PATH;
33+ dialler = load Dial Dial->PATH;
3034 initPAKparams();
3135 }
3236
@@ -38,7 +42,7 @@ privacy(): int · 5 unmodified lines
3842 return 1;
3943 }
4044
41−connect(addr: string, user: string, pwhash: array of byte): (ref Sys->Connection, string, string)
45+connect(addr: string, user: string, pwhash: array of byte): (ref Dial->Connection, string, string)
4246 {
4347 conn := dial(addr);
4448 if(conn == nil){
@@ -53,12 +57,12 @@ connect(addr: string, user: string, pwhash: array of byte): (ref Sys->Connection · 8 unmodified lines
5357 return (conn, sname, diag);
5458 }
5559
56−dial(netaddr: string): ref Sys->Connection
60+dial(netaddr: string): ref Dial->Connection
5761 {
5862 if(netaddr == nil)
5963 netaddr = "net!$auth!secstore";
60− (ok, conn) := sys->dial(netaddr, nil);
61− if(ok < 0)
64+ conn := dialler->dial(netaddr, nil);
65+ if(conn == nil)
6266 return nil;
6367 (err, sslconn) := ssl->connect(conn.dfd);
6468 if(err != nil)
@@ -66,7 +70,7 @@ dial(netaddr: string): ref Sys->Connection · 1 unmodified line
6670 return sslconn;
6771 }
6872
69−auth(conn: ref Sys->Connection, user: string, pwhash: array of byte): (string, string)
73+auth(conn: ref Dial->Connection, user: string, pwhash: array of byte): (string, string)
7074 {
7175 sname := PAKclient(conn, user, pwhash);
7276 if(sname == nil)
@@ -96,7 +100,7 @@ cansecstore(netaddr: string, user: string): int · 23 unmodified lines
96100 return string buf[0:n] == "!account exists";
97101 }
98102
99−sendpin(conn: ref Sys->Connection, pin: string): int
103+sendpin(conn: ref Dial->Connection, pin: string): int
100104 {
101105 if(sys->fprint(conn.dfd, "STA%s", pin) < 0)
102106 return -1;
@@ -109,7 +113,7 @@ sendpin(conn: ref Sys->Connection, pin: string): int · 6 unmodified lines
109113 return 0;
110114 }
111115
112−files(conn: ref Sys->Connection): list of (string, int, string, string, array of byte)
116+files(conn: ref Dial->Connection): list of (string, int, string, string, array of byte)
113117 {
114118 file := getfile(conn, ".", 0);
115119 if(file == nil)
@@ -136,7 +140,7 @@ files(conn: ref Sys->Connection): list of (string, int, string, string, array of · 20 unmodified lines
136140 return l;
137141 }
138142
139−getfile(conn: ref Sys->Connection, name: string, maxsize: int): array of byte
143+getfile(conn: ref Dial->Connection, name: string, maxsize: int): array of byte
140144 {
141145 fd := conn.dfd;
142146 if(maxsize <= 0)
@@ -171,7 +175,7 @@ getfile(conn: ref Sys->Connection, name: string, maxsize: int): array of byte · 28 unmodified lines
171175 return file;
172176 }
173177
174−remove(conn: ref Sys->Connection, name: string): int
178+remove(conn: ref Dial->Connection, name: string): int
175179 {
176180 if(sys->fprint(conn.dfd, "RM %s\n", name) < 0)
177181 return -1;
@@ -179,7 +183,7 @@ remove(conn: ref Sys->Connection, name: string): int · 1 unmodified line
179183 return 0;
180184 }
181185
182−bye(conn: ref Sys->Connection)
186+bye(conn: ref Dial->Connection)
183187 {
184188 if(conn != nil){
185189 if(conn.dfd != nil)
@@ -270,7 +274,7 @@ writerr(fd: ref Sys->FD, s: string) · 84 unmodified lines
270274 sys->werrstr(s);
271275 }
272276
273−setsecret(conn: ref Sys->Connection, sigma: array of byte, direction: int): string
277+setsecret(conn: ref Dial->Connection, sigma: array of byte, direction: int): string
274278 {
275279 secretin := array[Keyring->SHA1dlen] of byte;
276280 secretout := array[Keyring->SHA1dlen] of byte;
@@ -399,14 +403,14 @@ shorthash(mess: string, C: string, S: string, m: string, mu: string, sigma: stri · 122 unmodified lines
399403 # On output, session secret has been set in conn
400404 # (unless return code is negative, which means failure).
401405 #
402−PAKclient(conn: ref Sys->Connection, C: string, pwhash: array of byte): string
406+PAKclient(conn: ref Dial->Connection, C: string, pwhash: array of byte): string
403407 {
404408 dfd := conn.dfd;
405409
406410 (hexHi, H, nil) := PAK_Hi(C, pwhash);
407411
408412 # random 1<=x<=q-1; send C, m=g**x H
409− x := mod(IPint.random(240, 240), pak.q);
413+ x := mod(IPint.random(240), pak.q);
410414 if(x.eq(IPint.inttoip(0)))
411415 x = IPint.inttoip(1);
412416 m := mod(pak.g.expmod(x, pak.p).mul(H), pak.p);
dis/lib/secstore.dis+0−0

Binary file not shown.

doc/port.ms+2−2
@@ -25,7 +25,7 @@ a summary of differences with Unix · 24 unmodified lines
2525 .I make ,
2626 can be found in
2727 .I "Maintaining Files on Plan 9 with Mk"
28−by Hume and Flandera,
28+by Hume and Flandrena,
2929 reprinted in this volume.
3030 The source for
3131 .CW mk
@@ -453,7 +453,7 @@ UART, and IrDA mode · 421 unmodified lines
453453 .CW etherscc.c
454454 and
455455 .CW devuart.c ).
456−The IrDA has been used for Styx transport between a FADS board
456+The IrDA has been used for 9P transport between a FADS board
457457 and an IBM Thinkpad 560.
458458 The file
459459 .CW screen.c
doc/port.pdf+0−0

Binary file not shown.

include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20100203)"
1+#define VERSION "Fourth Edition (20100205)"
man/1/bind+6−5
@@ -89,13 +89,14 @@ it is assumed to be a network address for a machine acting · 88 unmodified lines
8989 as a file server.
9090 This argument should then conform to the conventions
9191 described in
92−.IR sys-dial (2).
92+.IR dial (2).
9393 Otherwise
9494 .I source
9595 should be the name of a file that when opened gives a connection
96−to a file server, something serving the Styx protocol
96+to a file server, something serving the 9P protocol
9797 described in
98−.IR intro (5).
98+.IR intro (5),
99+formerly called `Styx'.
99100 The optional
100101 .I spec
101102 argument to
@@ -262,7 +263,7 @@ Note the caveats on that page. · 160 unmodified lines
262263 For
263264 .I mount
264265 only,
265−the file server serves the original version of the Styx protocol, and
266+the file server serves the 1995 version of Inferno's Styx protocol, and
266267 .I mount
267268 inserts a process that translates to the current version.
268269 .SH SOURCE
@@ -273,10 +274,10 @@ inserts a process that translates to the current version. · 4 unmodified lines
273274 .B /appl/cmd/unmount.b
274275 .SH SEE ALSO
275276 .IR sh (1),
277+.IR dial (2),
276278 .IR keyring-auth (2),
277279 .IR security-auth (2),
278280 .IR sys-intro (2),
279281 .IR sys-bind (2),
280−.IR sys-dial (2),
281282 .IR intro (3),
282283 .IR getauthinfo (8)
man/1/cpu+1−1
@@ -49,7 +49,7 @@ is not used after authentication. · 48 unmodified lines
4949 .SH SOURCE
5050 .B /appl/cmd/cpu.b
5151 .SH SEE ALSO
52−.IR sys-dial (2),
52+.IR dial (2),
5353 .IR keyring-auth (2),
5454 .IR security-auth (2)
5555 .SH BUGS
man/1/grid-register+6−6
@@ -11,12 +11,12 @@ grid: register \- registers a resource with a known · 10 unmodified lines
1111
1212 .SH DESCRIPTION
1313 .I Register
14−takes a program which serves a Styx (see
15−.IR intro (5))
16−namespace on
17−.I stdin
18−and registers it with a known
19−.IR registry (4).
14+takes a program that serves a namespace using the 9P protocol on its standard input
15+and registers it with a known
16+.IR registery (4).
17+(See
18+.IR intro (5)
19+for a description of the protocol.)
2020 It then marshals the service by listening for incoming connections and exporting the namespace across them.
2121 .I Register
2222 prints out various status messages to
man/1/grid-session+5−3
@@ -17,9 +17,11 @@ Once started, · 16 unmodified lines
1717 .IR session
1818 presents a heirarchical view of currently registered resources (such as
1919 .IR grid-ns (1))
20−which export a Styx (see
21−.IR intro (5))
22−namespace. The top level displays the type of resource e.g.
20+that serve name spaces using 9P.
21+(See
22+.IR intro (5)
23+for a description of the protocol.)
24+The top level displays the type of resource, for instance
2325 .BR 'CPU resource' ,
2426 whilst the second level shows the name of each individual resource. Descending futher down the tree will reveal the attributes of the selected resource. To mount a resource and see the namespace it exports, click mouse button 3 on the resource name. The view will switch to a split pane view displaying the resource namespace with directories listed on the left and all files in the current directory displayed on the right.
2527 .PP
man/1/listen+5−5
@@ -59,7 +59,7 @@ waits for an incoming network connection on · 58 unmodified lines
5959 (as accepted by
6060 .B announce
6161 in
62−.IR sys-dial (2))
62+.IR dial (2))
6363 and then invokes
6464 .IR sh (1)
6565 to run the associated
@@ -97,7 +97,7 @@ with the shell variable · 31 unmodified lines
9797 .B net
9898 set to the name of the corresponding network directory
9999 (see
100−.IR sys-dial (2)),
100+.IR dial (2)),
101101 before listening for incoming calls.
102102 This can be used to change, or find out the characteristics
103103 of an announced port (for instance to find out
@@ -231,7 +231,7 @@ attach message seen by the command that · 127 unmodified lines
231231 has been started by
232232 .IR styxlisten .
233233 .SH "SEE ALSO"
234−.IR svc (8),
235−.IR sys-dial (2),
234+.IR dial (2),
235+.IR ssl (3),
236236 .IR auth (6),
237−.IR ssl (3)
237+.IR svc (8)
man/1/ls+1−1
@@ -61,7 +61,7 @@ to the file's owner, members of the file's group and anybody else · 60 unmodified lines
6161 respectively.
6262 .IP 2.
6363 The device type (this is the `#' device letter for local devices
64−or `M' for files mounted over a Styx connection).
64+or `M' for files mounted over a 9P connection).
6565 .IP 3.
6666 The device instance number (this distinguishes between
6767 separately mounted instances of the same device).
man/1/ns+1−2
@@ -27,7 +27,7 @@ mount or bind, the original name of the file is shown. · 26 unmodified lines
2727 .PP
2828 Mounts of file services on a network show the network address as
2929 given to
30−.IR sys-dial (2)
30+.IR dial (2)
3131 instead of the name of the data file for the connection; the
3232 .B -r
3333 option causes
@@ -40,4 +40,3 @@ to show the raw file name instead. · 6 unmodified lines
4040 .IR prog (3),
4141 .IR namespace (4),
4242 .IR namespace (6)
43−
man/1/secstore+1−1
@@ -98,7 +98,7 @@ as the extra authentication code if the server demands it. · 97 unmodified lines
9898 Connect to the server at the given network
9999 .IR address ,
100100 as defined by
101−.IR sys-dial (2),
101+.IR dial (2),
102102 and translated by
103103 .IR cs (8).
104104 The default is
man/1/sh-file2chan+3−1
@@ -235,7 +235,9 @@ memory-based file called · 234 unmodified lines
235235 .EE
236236 It is, however, very limited, as binary data stored in the file
237237 will be corrupted, and the size of the file is limited to the amount
238−of data that can be transmitted in a single Styx message (8192 bytes).
238+of data that can be transmitted in a single write
239+(see
240+.IR sys-read (2)).
239241 .PP
240242 The following code implements a single-threaded logfile
241243 which can support multiple concurrent writers:
man/1/telnet+1−1
@@ -9,7 +9,7 @@ telnet \- make a remote telnet connection · 8 unmodified lines
99 uses the Telnet protocol to talk to a remote
1010 .IR machine ,
1111 addressed using any form acceptable to
12−.IR sys-dial (2):
12+.IR dial (2):
1313 .IB net ! host ! port
1414 in general.
1515 The default
man/10/devattach+3−5
@@ -203,7 +203,7 @@ and consequently those values must remain valid until the last use of · 202 unmodified lines
203203 .BR up->genbuf .)
204204 If channel
205205 .I c
206−corresponds to a file descriptor on which Styx is served,
206+corresponds to a file descriptor on which 9P is served,
207207 .I devdir
208208 sets both the flag bit
209209 .B QTMOUNT
@@ -214,9 +214,7 @@ and the flag bit · 4 unmodified lines
214214 in
215215 .IB dp ->mode
216216 (see
217−.I export
218−in
219−.IR sys-dial (2)
217+.IR sys-export (2)
220218 and
221219 .I mount
222220 in
@@ -470,7 +468,7 @@ returned by · 247 unmodified lines
470468 .BR Qid.path ).
471469 If
472470 .I c
473−is a communications channel connecting a Styx server to a current mount point,
471+is a communications channel connecting a 9P server to a current mount point,
474472 the
475473 .B DMMOUNT
476474 bit is set in the resulting
man/10/odbc+12−1
@@ -7,11 +7,13 @@ ODBC \- A Windows ODBC file server · 6 unmodified lines
77 .B -d
88 ] [
99 .BI -p " port"
10+] [
11+.BI -u " user"
1012 ]
1113 .SH DESCRIPTION
1214 .I Odbc
1315 is a file server that runs under Windows and
14−exports a Styx namespace
16+exports a 9P namespace
1517 (see
1618 .IR intro (5)).
1719 An Inferno process that mounts the namespace
@@ -26,6 +28,15 @@ to print debugging information. · 8 unmodified lines
2628 The
2729 .B -p
2830 option gives the port number to listen on for connections. The default is 6700.
31+.PP
32+By default, the user
33+.B inferno
34+owns the files in the name space.
35+The
36+.B -u
37+option makes
38+.I user
39+own the files instead.
2940 .SS Name space
3041 .I Odbc
3142 presents the following name space:
man/10/styx+6−5
@@ -40,7 +40,8 @@ uint sizeD2M(Dir *d) · 39 unmodified lines
4040 These
4141 routines convert messages in the machine-independent format of
4242 the Inferno file protocol,
43−Styx (which is equivalent to the Plan 9 protocol 9P2000),
43+described by
44+.IR intro (5),
4445 to and from a more convenient form,
4546 an
4647 .B Fcall
@@ -129,7 +130,7 @@ void PBIT64(uchar*, vlong) · 82 unmodified lines
129130 This structure is defined in
130131 .BR <styx.h> .
131132 See section 5
132−for a full description of Styx messages and their encoding.
133+for a full description of 9P messages and their encoding.
133134 For all message types, the
134135 .B type
135136 field of an
@@ -149,7 +150,7 @@ The other fields are used selectively by the message types · 13 unmodified lines
149150 given in comments.
150151 .PP
151152 .I ConvM2S
152−takes a Styx message at
153+takes a 9P message at
153154 .I ap
154155 of length
155156 .IR nap ,
@@ -197,7 +198,7 @@ are copied into the message. · 41 unmodified lines
197198 The constant
198199 .B IOHDRSZ
199200 is a suitable amount of buffer to reserve for storing
200−the Styx header;
201+the 9P header;
201202 the data portion of a
202203 .B Twrite
203204 or
@@ -295,7 +296,7 @@ which is a simple but effective test of validity. · 91 unmodified lines
295296 and
296297 .I buf
297298 should include the second two-byte (16-bit) length field that precedes the entry when
298−formatted in a Styx message (see
299+formatted in a 9P message (see
299300 .IR stat (5));
300301 in other words,
301302 .I nbuf
man/2/drawmux+1−1
@@ -52,7 +52,7 @@ and the log (base 2) of the number of bits per pixel for windows created on that · 51 unmodified lines
5252 The remote viewer must then use
5353 .B Sys->export
5454 (see
55−.IR sys-dial (2))
55+.IR sys-export (2))
5656 to export its
5757 .BR /dev/draw ,
5858 which
man/2/registries+3−3
@@ -108,7 +108,7 @@ It has the following members and operations: · 107 unmodified lines
108108 .TP
109109 .B addr
110110 A string that represents where the service can be reached: it is often a
111−.IR sys-dial (2)
111+.IR dial (2)
112112 address string, but might be a name in the name space; the interpretation is internal to
113113 .BR Registries .
114114 .TP
@@ -148,7 +148,7 @@ It provides the following members: · 33 unmodified lines
148148 .TP
149149 .B fd
150150 A file descriptor that can be read and written to exchange data with the service.
151−The meaning of the data depends on the service (eg, it might be a Styx connection
151+The meaning of the data depends on the service (eg, it might be a 9P connection
152152 or a SOAP implementation).
153153 Typically an attribute of the service description hints at the protocol.
154154 .TP
@@ -222,7 +222,7 @@ Connect to the registry at the location determined by the service description · 67 unmodified lines
222222 if
223223 .I svc
224224 is nil, the default is to try
225−.IR sys-dial (2)
225+.IR dial (2)
226226 to
227227 .BR net!$registry!registry ,
228228 the symbolic name of the default registry for the current host.
man/2/secstore+17−16
@@ -3,6 +3,7 @@ · 2 unmodified lines
33 secstore \- fetch data from Plan 9's secure storage service
44 .SH SYNOPSIS
55 .EX
6+include "dial.m";
67 include "secstore.m";
78 secstore := load Secstore Secstore->PATH;
89
@@ -12,19 +13,19 @@ init: fn(); · 3 unmodified lines
1213 privacy: fn(): int;
1314 cansecstore: fn(addr: string, user: string): int;
1415 mkseckey: fn(pass: string): array of byte;
15−dial: fn(addr: string): ref Sys->Connection;
16−auth: fn(conn: ref Sys->Connection, user: string, seckey: array of byte):
16+dial: fn(addr: string): ref Dial->Connection;
17+auth: fn(conn: ref Dial->Connection, user: string, seckey: array of byte):
1718 (string, string);
1819 connect: fn(addr: string, user: string, seckey: array of byte):
19− (ref Sys->Connection, string, string);
20−sendpin: fn(conn: ref Sys->Connection, pin: string): int;
21−files: fn(conn: ref Sys->Connection):
20+ (ref Dial->Connection, string, string);
21+sendpin: fn(conn: ref Dial->Connection, pin: string): int;
22+files: fn(conn: ref Dial->Connection):
2223 list of (string, int, string, string, array of byte);
23−getfile: fn(conn: ref Sys->Connection, name: string,
24+getfile: fn(conn: ref Dial->Connection, name: string,
2425 maxsize: int): array of byte;
25−.\"putfile: fn(conn: ref Sys->Connection, name: string, data: array of byte,): int;
26−remove: fn(conn: ref Sys->Connection, file: string): int;
27−bye: fn(conn: ref Sys->Connection);
26+.\"putfile: fn(conn: ref Dial->Connection, name: string, data: array of byte,): int;
27+remove: fn(conn: ref Dial->Connection, file: string): int;
28+bye: fn(conn: ref Dial->Connection);
2829
2930 mkfilekey: fn(pass: string): array of byte;
3031 decrypt: fn(data: array of byte, filekey: array of byte): array of byte;
@@ -43,16 +44,16 @@ that can then be used to fetch and decrypt data files, such as the · 12 unmodified lines
4344 file containing the initial keys for an instance of
4445 .IR factotum (4).
4546 The module's functions hold the file descriptors for the connection in a
46−.BR Sys->Connection
47+.BR Dial->Connection
4748 value,
4849 as returned by
49−.IR sys-dial (2).
50+.IR dial (2).
5051 The
5152 .I addr
5253 parameter that gives the network address of the
5354 .I secstore
5455 service is also as defined in
55−.IR sys-dial (2).
56+.IR dial (2).
5657 A nil value defaults to
5758 .BR "net!$auth!secstore" ,
5859 for translation in the usual way by
@@ -94,9 +95,9 @@ dials the · 35 unmodified lines
9495 at network address
9596 .I addr
9697 (as defined by
97−.IR sys-dial (2))
98−and returns a reference to the resulting
99−.BR Sys->Connection .
98+.IR dial (2))
99+and returns a reference to the resulting
100+.BR Dial->Connection .
100101 It returns nil on an error and sets the error string.
101102 .PP
102103 .B Auth
@@ -106,7 +107,7 @@ of the service. · 3 unmodified lines
106107 The parameter
107108 .I conn
108109 refers to the
109−.B Sys->Connection
110+.B Dial->Connection
110111 value representing the connection.
111112 .I User
112113 names a user registered with the service.
man/2/security-login+1−1
@@ -44,7 +44,7 @@ CA. · 43 unmodified lines
4444 .PP
4545 .B Login
4646 connects, using
47−.IR sys-dial (2),
47+.IR dial (2),
4848 to the signer at network address
4949 .IR addr ,
5050 which is any form accepted by
man/2/srv+1−1
@@ -34,7 +34,7 @@ and · 33 unmodified lines
3434 .IR dns (6)
3535 if available.
3636 Other Inferno applications normally give network addresses to the functions of
37−.IR sys-dial (2),
37+.IR dial (2),
3838 and they are then translated automatically, using the services of
3939 .IR cs (8).
4040 .PP
man/2/styx+7−6
@@ -1,6 +1,6 @@
11 .TH STYX 2
22 .SH NAME
3−Styx: Rmsg, Tmsg, dir2text, istmsg, packdir, packdirsize, readmsg, qid2text, unpackdir \- interface to Styx file protocol
3+Styx: Rmsg, Tmsg, dir2text, istmsg, packdir, packdirsize, readmsg, qid2text, unpackdir \- interface to 9P (Styx) file protocol
44 .SH SYNOPSIS
55 .EX
66 include "styx.m";
@@ -118,13 +118,14 @@ MAXRPC: con \fIimplementation-defined\f5; · 111 unmodified lines
118118 .EE
119119 .SH DESCRIPTION
120120 .B Styx
121−provides a Limbo interface to send and receive messages of the Styx file service protocol,
122−described by Section 5 of this manual (a thorough reading of which
123−is advised before using this module).
121+provides a Limbo interface to send and receive messages of the 9P file service protocol,
122+described by Section 5 of this manual, a thorough reading of which
123+is advised before using this module.
124+(The protocol was previously called `Styx' in Inferno, hence the module's name.)
124125 .B Init
125126 must be called before using any other function in the module.
126127 .PP
127−A Styx client transmits requests to a server as `T-messages'
128+A 9P client transmits requests to a server as `T-messages'
128129 and receives replies in matching `R-messages'.
129130 A T-message is here represented by values of the type
130131 .BR Tmsg ,
@@ -232,7 +233,7 @@ Return a printable string showing the contents of · 101 unmodified lines
232233 for tracing or debugging.
233234 .TP
234235 .IB t .mtype()
235−Return the Styx message type of the message.
236+Return the 9P message type of the message.
236237 .PP
237238 An R-message is represented by
238239 .BR Rmsg .
man/2/styxconv+7−6
@@ -1,6 +1,6 @@
11 .TH STYXCONV 2
22 .SH NAME
3−styxconv \- convert between old and new Styx
3+styxconv \- convert between old 1995 Styx and current Styx (9P)
44 .SH SYNOPSIS
55 .EX
66 include "styxconv.m";
@@ -12,9 +12,10 @@ styxconv: fn(client: ref Sys->FD, server: ref Sys->FD); · 5 unmodified lines
1212 .EE
1313 .SH DESCRIPTION
1414 .B Styxconv
15−converts between the previous version of the Styx protocol,
15+converts between the obsolete 1995 version of the Styx protocol,
1616 as used for instance in Inferno's Third Edition and earlier,
17−and the current version of the protocol,
17+and the current file service protocol,
18+previously also called `Styx' but
1819 based on 9P2000 and defined by
1920 .IR intro (5).
2021 .PP
@@ -25,10 +26,10 @@ The function · 4 unmodified lines
2526 .B styxconv
2627 takes two file descriptors:
2728 .I client
28−should be a connection to a styx client requiring
29+should be a connection to a client requiring
2930 one version of the protocol;
3031 .I server
31−should be a connection to a styx server serving
32+should be a connection to a server serving
3233 the other version of the protocol.
3334 There are two conversion modules:
3435 .B PATHNEW2OLD
@@ -74,4 +75,4 @@ cvstyx(fd: ref Sys->FD): ref Sys->FD · 39 unmodified lines
7475 .IR sys-pipe (2),
7576 .IR intro (5)
7677 .SH BUGS
77−There is no provision for 9p2000 authentication.
78+There is no provision for 9P2000 authentication.
man/2/styxflush+5−5
@@ -1,6 +1,6 @@
11 .TH STYXFLUSH 2
22 .SH NAME
3−styxflush \- handler for styx flush protocol
3+styxflush \- handler for 9P (Styx) flush protocol
44 .SH SYNOPSIS
55 .EX
66 include "sys.m";
@@ -16,17 +16,17 @@ rmsg: fn(m: ref Styx->Rmsg): int; · 9 unmodified lines
1616 Einterrupted: con "interrupted";
1717 .EE
1818 .SH DESCRIPTION
19−Getting the semantics of the Styx
19+Getting the semantics of the 9P
2020 .IR flush (5)
2121 protocol correct when handling requests concurrently
2222 is surprisingly hard to do.
2323 .I Styxflush
24−is designed to help get it right. It deals with Styx
25−messages for a single styx session \- if a server needs to
24+is designed to help get it right. It deals with 9P
25+messages for a single 9P session \- if a server needs to
2626 deal with multiple sessions, then multiple instances of
2727 .I styxflush
2828 should be loaded. It assumes there is a loop in a central process
29−which both reads T-messages and sends their R-message replies.
29+that both reads T-messages and sends their R-message replies.
3030 .I Styxflush
3131 handles the flushing of requests that are being run
3232 outside the central process.
man/2/styxpersist+6−6
@@ -1,20 +1,20 @@
11 .TH STYXPERSIST 2
22 .SH NAME
3−styxpersist \- persistent Styx connection
3+styxpersist \- persistent 9P (Styx) connection
44 .SH SYNOPSIS
55 .EX
66 include "sys.m";
77 include "styxpersist.m";
88 styxpersist := load Styxpersist Styxpersist->PATH;
99
10−init: fn(clientfd: ref Sys->FD, usefac: int, keyspec: string)
11− : (chan of chan of ref Sys->FD, string);
10+init: fn(clientfd: ref Sys->FD, usefac: int, keyspec: string):
11+ (chan of chan of ref Sys->FD, string);
1212 .EE
1313 .SH DESCRIPTION
1414 .I Styxpersist
15−tries to maintain a persistent Styx connection for its client.
15+tries to maintain a persistent 9P (Styx) connection for its client.
1616 .B Init
17−starts a process to serve Styx for the client on
17+starts a process to serve 9P for the client on
1818 .IR clientfd .
1919 If
2020 .I usefac
@@ -77,4 +77,4 @@ Plan 9 style. If a client uses an external factotum with different keys, · 56 unmodified lines
7777 may be unable to re-authenticate.
7878 .SH "SEE ALSO"
7979 .IR mount (1),
80−.IR sys-dial (2)
80+.IR dial (2)
man/2/styxservers+8−8
@@ -1,7 +1,7 @@
11 .TH STYXSERVERS 2
22 .SH NAME
33 styxservers \-
4−Styx server implementation assistance
4+9P (Styx) server implementation assistance
55 .SH SYNOPSIS
66 .EX
77 include "sys.m";
@@ -14,7 +14,7 @@ Styxserver, Fid, Navigator: import styxservers; · 6 unmodified lines
1414 Styxserver: adt {
1515 fd: ref Sys->FD; # file server end of connection
1616 t: ref Navigator; # name space navigator for this server
17− msize: int; # negotiated Styx message size
17+ msize: int; # negotiated 9P message size
1818
1919 new: fn(fd: ref Sys->FD, t: ref Navigator, rootpath: big)
2020 :(chan of ref Tmsg, ref Styxserver);
@@ -103,7 +103,7 @@ openok: fn(uname: string, omode, · 82 unmodified lines
103103 openmode: fn(o: int): int;
104104 .EE
105105 .SH DESCRIPTION
106−When writing a Styx file server, there are some
106+When writing a file server, there are some
107107 commonly performed tasks that are
108108 fiddly or tedious to implement each time.
109109 .B Styxservers
@@ -119,7 +119,7 @@ left to the file server program itself. · 9 unmodified lines
119119 Familiarity with Section 5 of the manual which defines the protocol
120120 (see
121121 .IR intro (5)),
122−and with the representation of Styx messages in Limbo
122+and with the representation of 9P messages in Limbo
123123 (see
124124 .IR styx (2)),
125125 is a prerequisite for use of this module.
@@ -322,7 +322,7 @@ reference · 196 unmodified lines
322322 which can be used to access that navigator; and
323323 the file descriptor
324324 .IB srv .fd
325−that is the file server's end of the connection to the Styx client.
325+that is the file server's end of the connection to the 9P client.
326326 Both values are initially provided by the file serving application,
327327 but can be accessed through the
328328 .B Styxserver
@@ -345,7 +345,7 @@ It returns a tuple, say · 16 unmodified lines
345345 .RI ( c ", " srv ),
346346 and spawns a new process, which uses
347347 .IR styx (2)
348−to read and parse Styx messages read
348+to read and parse 9P messages read
349349 from
350350 .IR fd ,
351351 and send them down
@@ -892,14 +892,14 @@ with OTRUNC and ORCLOSE flags removed. · 540 unmodified lines
892892 If
893893 .I on
894894 is true (non-zero),
895−will trace Styx requests and replies, on standard error.
895+will trace 9P requests and replies, on standard error.
896896 This option must be set before creating a
897897 .BR Styxserver ,
898898 to ensure that it preserves its standard error descriptor.
899899 .SS Constants
900900 .B Styxservers
901901 defines a number of constants applicable to the writing
902−of Styx servers, including:
902+of 9P servers, including:
903903 .TP
904904 .BR Einuse\fP,\fP\ Ebadfid\fP,\fP\ Eopen\fP,\fP\ Enotfound\fP,\fP\ Enotdir\fP,\fP\ Eperm\fP,\fP\ Ebadarg\fP,\fP\ Eexists
905905 These provide standard strings for commonly used error conditions,
man/2/sys-0intro+2−2
@@ -210,8 +210,8 @@ will be honoured for a file depends entirely on the underlying file server · 209 unmodified lines
210210 Record locking in the underlying file system is not supported by Inferno.
211211 Processes can coordinate their file operations by other mechanisms.
212212 .PP
213−Atomicity is guaranteed for byte counts smaller than the
214−.I Styx
213+Atomicity is guaranteed for byte counts no larger than the
214+.I 9P
215215 message size;
216216 see
217217 .IR read (5).
man/2/sys-bind+1−1
@@ -54,7 +54,7 @@ The · 53 unmodified lines
5454 argument to
5555 .B mount
5656 is a file descriptor of an open pipe or network connection
57−to a file server ready to receive Styx messages.
57+to a file server ready to receive 9P messages.
5858 The
5959 .I old
6060 file must be a directory.
man/2/sys-export+2−2
@@ -11,7 +11,7 @@ export: fn(fd: ref FD, dir: string, flag: int): int; · 10 unmodified lines
1111 .SH DESCRIPTION
1212 .B Export
1313 receives and replies
14−to Styx requests from a client on a connection represented by
14+to 9P requests from a client on a connection represented by
1515 .IR fd ,
1616 for file operations on the part of the current file name space
1717 rooted at
@@ -40,7 +40,7 @@ of a · 22 unmodified lines
4040 returned by
4141 .B listen
4242 (see
43−.IR sys-dial (2)).
43+.IR dial (2)).
4444 Before calling
4545 .BR export ,
4646 the connection on
man/2/sys-fauth+1−1
@@ -11,7 +11,7 @@ fauth: fn(fd: ref FD, aname: string): ref FD; · 10 unmodified lines
1111 .SH DESCRIPTION
1212 .B Fauth
1313 provides a means for the current user to authenticate to access
14−resources available through the Styx connection represented by
14+resources available through the 9P connection represented by
1515 .IR fd .
1616 The return value is a file descriptor, conventionally called
1717 .IR afd ,
man/2/sys-file2chan+1−1
@@ -49,7 +49,7 @@ the contents of the · 48 unmodified lines
4949 .B Tread
5050 and
5151 .B Twrite
52−Styx messages received by the system on the server's behalf; see
52+9P messages received by the system on the server's behalf; see
5353 .IR intro (5).
5454 .PP
5555 When the client invokes the
man/2/sys-fversion+3−3
@@ -1,6 +1,6 @@
11 .TH SYS-FVERSION 2
22 .SH NAME
3−fversion \- initialize Styx connection and negotiate version
3+fversion \- initialize 9P connection and negotiate version
44 .SH SYNOPSIS
55 .EX
66 include "sys.m";
@@ -10,13 +10,13 @@ fversion: fn(fd: ref FD, bufsize: int, version: string): (int, string); · 3 unmodified lines
1010 .EE
1111 .SH DESCRIPTION
1212 .B Fversion
13−initialises the Styx connection represented by
13+initialises the 9P connection represented by
1414 .I fd
1515 and negotiates the maximum message size and the version of the protocol to be used.
1616 .PP
1717 The
1818 .I bufsize
19−determines the size of the I/O buffer used to stage Styx requests to the server,
19+determines the size of the I/O buffer used to stage 9P requests to the server,
2020 subject to the constraints of the server itself.
2121 The
2222 .I version
man/2/sys-iounit+1−1
@@ -9,7 +9,7 @@ sys := load Sys Sys->PATH; · 8 unmodified lines
99 iounit: fn(fd: ref FD): int;
1010 .EE
1111 .SH DESCRIPTION
12−Reads and writes of files are transmitted using the Styx protocol (see
12+Reads and writes of files are transmitted using the 9P protocol (see
1313 .IR intro (5))
1414 and in general, operations involving large amounts of data must be
1515 broken into smaller pieces by the operating system.
man/2/sys-pipe+2−2
@@ -33,12 +33,12 @@ communication by cooperating processes. · 32 unmodified lines
3333 Pipes are still useful, however,
3434 to connect applications that do not (or cannot) share such channels,
3535 or when a system interface requires a file descriptor.
36−For instance, a process that serves the Styx protocol can
36+For instance, a process that serves the 9P protocol can
3737 pass the file descriptor for one end of a pipe to
3838 .B Sys->mount
3939 (see
4040 .IR sys-bind (2)),
41−and read and write Styx messages on the other end of the pipe.
41+and read and write 9P messages on the other end of the pipe.
4242 .SH DIAGNOSTICS
4343 Returns 0 on success; -1 on failure.
4444 .SH "SEE ALSO"
man/2/virgil+1−1
@@ -39,7 +39,7 @@ It accepts and returns the first answer it receives. · 38 unmodified lines
3939 .SH SOURCE
4040 .B /appl/lib/virgil.b
4141 .SH SEE ALSO
42−.IR sys-dial (2),
42+.IR dial (2),
4343 .IR cs (8),
4444 .IR register (8),
4545 .IR virgild (8)
man/3/0intro+1−1
@@ -29,7 +29,7 @@ device. · 28 unmodified lines
2929 .PP
3030 A kernel device driver is a
3131 .I server
32−in the sense of the Inferno File Protocol, Styx (see Section 5),
32+in the sense of the Inferno File Protocol, 9P (see Section 5),
3333 but with the messages implemented by local
3434 rather than remote procedure calls.
3535 Also, several of the messages
man/3/ip+4−4
@@ -243,7 +243,7 @@ The · 242 unmodified lines
243243 and
244244 .BR listen
245245 functions described in
246−.IR sys-dial (2)
246+.IR dial (2)
247247 perform the necessary I/O to establish and
248248 manipulate network connections.
249249 .SS TCP protocol
@@ -747,7 +747,7 @@ and · 497 unmodified lines
747747 .IB device !0x806
748748 (ARP).
749749 See
750−.IR sys-dial (2)
750+.IR dial (2)
751751 for the interpretation of such addresses.
752752 The interface runs until a process does an explicit
753753 .BR unbind .
@@ -807,7 +807,7 @@ contains · 53 unmodified lines
807807 a connection will be opened using
808808 .B dial
809809 (see
810−.IR sys-dial (2)).
810+.IR dial (2)).
811811 Otherwise the name will be opened as-is;
812812 usually it is the name of a serial device
813813 (eg,
@@ -921,6 +921,6 @@ to be set, or the current user lacks the privileges to set it. · 107 unmodified lines
921921 .br
922922 .B /os/ip/*medium.c
923923 .SH "SEE ALSO"
924−.IR sys-dial (2)
924+.IR dial (2)
925925 .\" joinmulti and leavemulti are unimplemented
926926 .\" many media are only partly implemented
man/3/logfs+2−2
@@ -44,7 +44,7 @@ devices are supported. · 43 unmodified lines
4444 .PP
4545 The file system maintains two storage regions on the same medium:
4646 a log-structured hierarchical file system that implements all the
47−functionality communicable by the Styx protocol
47+functionality communicable by the 9P protocol
4848 (see
4949 .IR intro (5)),
5050 and a boot
@@ -106,7 +106,7 @@ two files appear in the device name space, · 55 unmodified lines
106106 .BI /dev/logfs name
107107 and
108108 .BI /dev/logfs name\f5boot\fI.
109−The former serves the Styx protocol giving access to the hierarchical file system;
109+The former serves the 9P protocol giving access to the hierarchical file system;
110110 the latter is a fixed size file that represents the boot partition.
111111 .TP
112112 .BI [fsys " name\f5] format \fIbootsize"
man/3/mnt+6−6
@@ -1,6 +1,6 @@
11 .TH MNT 3
22 .SH NAME
3−mnt \- attach to Styx servers
3+mnt \- attach to 9P servers
44 .SH SYNOPSIS
55 .nf
66 .B #M
@@ -15,12 +15,12 @@ is used by · 8 unmodified lines
1515 see
1616 .IR sys-bind (2))
1717 to connect the name space of a process to
18−the service provided by a Styx server over a communications channel.
18+the service provided by a 9P server over a communications channel.
1919 After the
2020 .BR mount ,
2121 file operations in that portion of the name space will
2222 be converted by the mount driver into the appropriate
23−Styx messages to the server, and its Styx replies returned
23+9P messages to the server, and its 9P replies returned
2424 as the status of the system calls.
2525 .PP
2626 Any authentication must precede
@@ -40,8 +40,8 @@ Each distinct user of a connection must mount it separately; · 13 unmodified lines
4040 the mount driver multiplexes the access of the various users and their
4141 processes to the service.
4242 .PP
43−File-oriented system calls are converted by the kernel into messages in the Styx protocol.
44−Within the kernel, Styx is implemented by procedure calls to the
43+File-oriented system calls are converted by the kernel into messages in the 9P protocol.
44+Within the kernel, 9P is implemented by procedure calls to the
4545 various kernel device drivers, as described in
4646 .IR intro (10)
4747 and
@@ -61,7 +61,7 @@ system call on a file served by the mount driver · 13 unmodified lines
6161 may be translated
6262 into more than one
6363 message,
64−since there is a maximum data size for a Styx message.
64+since there is a maximum data size for a 9P message.
6565 The system call
6666 will return when the specified number of bytes have been transferred
6767 or a short reply is returned.
man/3/plap+1−1
@@ -126,7 +126,7 @@ The device follows the conventions that allow · 125 unmodified lines
126126 and
127127 .B listen
128128 of
129−.IR sys-dial (2)
129+.IR dial (2)
130130 to do the work needed to establish and manipulate network connections.
131131 .SH SOURCE
132132 .B /os/pc/devplap.c
man/3/tls+1−1
@@ -267,7 +267,7 @@ and · 266 unmodified lines
267267 .BR 'sha1' .
268268 .SH "SEE ALSO"
269269 .IR listen (1),
270−.IR sys-dial (2),
270+.IR dial (2),
271271 .IR ssl (3)
272272 \".IR pushtls (2)
273273 .SH SOURCE
man/4/0intro+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 .SH NAME
33 intro \- introduction to file servers
44 .SH DESCRIPTION
5−This section describes programs that serve Styx
5+This section describes programs that serve 9P
66 (see
77 .IR intro (5)),
88 and can therefore
man/4/dossrv+1−1
@@ -27,7 +27,7 @@ makes the contents of a DOS/Windows file system visible in the Inferno name spac · 26 unmodified lines
2727 The options are:
2828 .TP
2929 .B -v
30−print a debugging trace, including Styx messages, on standard error
30+print a debugging trace, including 9P messages, on standard error
3131 .TP
3232 .B -F
3333 display FAT information
man/4/export+6−7
@@ -13,12 +13,10 @@ export \- export name space on a connection · 12 unmodified lines
1313 .SH DESCRIPTION
1414 .I Export
1515 calls
16−.B Sys->export
17−(see
18−.IR sys-dial (2))
19−to serve a name space rooted at
16+.IR sys-export (2)
17+to serve the name space rooted at
2018 .I dir
21−over a connection to a Styx client.
19+over a connection to a 9P (Styx) client.
2220 .I Export
2321 opens the connection on the given
2422 .IR file ,
@@ -35,7 +33,7 @@ serves the current name space without forking it; changes made to it · 10 unmodified lines
3533 will be visible to clients.
3634 .PP
3735 .I Export
38−starts serving Styx immediately; it assumes that the connection
36+starts serving 9P immediately; it assumes that the connection
3937 has been authenticated if required.
4038 .I Export
4139 is typically called via
@@ -53,5 +51,6 @@ unless a transport protocol is run on the connection. · 11 unmodified lines
5351 .SH SEE ALSO
5452 .IR cpu (1),
5553 .IR listen (1),
56−.IR sys-dial (2),
54+.IR dial (2),
55+.IR sys-export (2),
5756 .IR intro (5)
man/4/ftpfs+1−1
@@ -23,7 +23,7 @@ visible at · 22 unmodified lines
2323 .BR /n/ftp )
2424 in the current name space,
2525 for access by ordinary Inferno file operations.
26−In other words, it is a protocol translator between FTP and Styx.
26+In other words, it is a protocol translator between FTP and 9P.
2727 The connection is shut down by unmounting the mount point;
2828 see
2929 .IR bind (1).
man/4/grid-cpu+1−1
@@ -53,7 +53,7 @@ For example, to import · 52 unmodified lines
5353 .B /dis
5454 and
5555 .B /dev
56−from a resource exporting a Styx (see
56+from a resource exporting a 9P (see
5757 .IR intro(5))
5858 namespace at address
5959 .B tcp!200.1.5.53!7003
man/4/iostats+1−1
@@ -65,7 +65,7 @@ Display summary of file I/O incurred by · 64 unmodified lines
6565 iostats ls
6666 .EE
6767 .PP
68−Start a new shell, displaying all Styx traffic caused by the shell or its children:
68+Start a new shell, displaying all 9P traffic caused by the shell or its children:
6969 .IP
7070 .EX
7171 iostats -df /fd/1 sh
man/4/kfs+1−1
@@ -21,7 +21,7 @@ kfs \- disk file system · 20 unmodified lines
2121 implements a hierarchical Inferno file system within an existing
2222 .IR file ,
2323 which is typically a disk or flash memory partition.
24−It gives access to it through the Styx protocol on its standard input,
24+It gives access to it through the 9P protocol on its standard input,
2525 and the contents can be mounted directly on a given
2626 .I dir
2727 as shown above.
man/4/mntgen+1−1
@@ -5,7 +5,7 @@ mntgen \- dynamically generate mount points · 4 unmodified lines
55 .BI "mount {mntgen} " dir
66 .SH DESCRIPTION
77 .I Mntgen
8−serves a Styx connection on its standard input, providing a name space containing a
8+serves 9P on its standard input, providing a name space containing a
99 single directory that is initially empty, but in which a subdirectory name appears when
1010 is first referenced, and remains only as long as it is needed (referenced).
1111 .I Mntgen
man/4/registry+1−1
@@ -25,7 +25,7 @@ where services come and go. · 24 unmodified lines
2525 It was originally intended to register Grid resources
2626 but has much wider use.
2727 .I Registry
28−serves Styx on its standard input.
28+serves 9P on its standard input.
2929 That can be mounted in the local name space (see below for an example),
3030 or served over a connection
3131 (eg, via
man/6/image+1−1
@@ -135,7 +135,7 @@ image data. · 134 unmodified lines
135135 The rest of the file is a string of compression blocks, each encoding
136136 a number of rows of the image's pixel data. Compression blocks
137137 are at most 6024 bytes long, so that they fit comfortably in a
138−single Styx message. Since a compression block must encode a
138+single 9P message. Since a compression block must encode a
139139 whole number of rows, there is a limit (about 5825 bytes) to the width of images
140140 that may be encoded. Most wide images are in subfonts,
141141 which, at 1 bit per pixel (the usual case for fonts), can be 46600 pixels wide.
man/8/collabsrv+4−4
@@ -29,7 +29,7 @@ The services are defined by the contents of directory · 28 unmodified lines
2929 (default:
3030 .BR /services/collab ).
3131 .I Collabsrv
32−serves an authenticated Styx connection that exports the contents of
32+serves an authenticated 9P connection that exports the contents of
3333 .IB dir /export
3434 (default:
3535 .BR /services/collab/export ).
@@ -57,10 +57,10 @@ all share that name space. · 21 unmodified lines
5757 The name space is determined by the service.
5858 .PP
5959 A client wishing to make use of the services must first
60−.IR sys-dial (2)
60+.IR dial (2)
6161 to connect to
6262 .IR collabsrv,
63−and authenticate and mount the resulting Styx connection.
63+and authenticate and mount the resulting 9P connection.
6464 It can do so using the
6565 .I mount
6666 command
@@ -141,7 +141,7 @@ but usually refer to files in · 74 unmodified lines
141141 Each
142142 .I collabsrv
143143 service is represented by a name space peculiar to that service.
144−The interface to the service is therefore implemented by a service-specific Styx server
144+The interface to the service is therefore implemented by a service-specific 9P server
145145 .RI ( disfile
146146 in the configuration file).
147147 Current services are described below.
man/8/cs+3−3
@@ -31,7 +31,7 @@ answering requests by client processes · 30 unmodified lines
3131 to translate symbolic network and service names into
3232 instructions for connecting to the given service.
3333 It is normally accessed indirectly by calls to
34−.IR sys-dial (2).
34+.IR dial (2).
3535 .PP
3636 The network data is taken from the network database files,
3737 described in
@@ -76,7 +76,7 @@ or · 38 unmodified lines
7676 .B announce
7777 as required.
7878 (All this activity is normally encapsulated in a call to
79−.IR sys-dial (2)).
79+.IR dial (2).)
8080 .I Cs
8181 produces a translation for each network and for each network address on which a symbolic
8282 .I netaddr
@@ -243,6 +243,6 @@ map from symbolic service names to servers · 160 unmodified lines
243243 .br
244244 .B /appl/cmd/ndb/csquery.b
245245 .SH "SEE ALSO"
246−.IR sys-dial (2),
246+.IR dial (2),
247247 .IR ndb (6),
248248 .IR dns (8)
man/8/httpd+1−1
@@ -60,7 +60,7 @@ has the following options: · 59 unmodified lines
6060 Listen for calls on the given
6161 .IR address ,
6262 expressed using the syntax of
63−.IR sys-dial (2).
63+.IR dial (2).
6464 .TP
6565 .BI -c " cachesize"
6666 Set the size of the daemon's cache to
man/8/ping+2−2
@@ -17,7 +17,7 @@ ping \- probe the Internet · 16 unmodified lines
1717 sends ICMP echo requests to a network
1818 .I destination
1919 (which has the syntax accepted by
20−.IR sys-dial (2)).
20+.IR dial (2)).
2121 The target host, if up, should send a corresponding reply.
2222 By default, one line is printed for each reply,
2323 containing the sequence number (starting at 0) of the message it answers,
@@ -54,7 +54,7 @@ in bytes · 30 unmodified lines
5454 .SH SOURCE
5555 .B /appl/cmd/ip/ping.b
5656 .SH SEE ALSO
57−.IR sys-dial (2),
57+.IR dial (2),
5858 .IR ip (3)
5959 .SH DIAGNOSTICS
6060 .I Ping
man/8/rdbgsrv+6−59
@@ -15,19 +15,13 @@ rdbgsrv \- remote debug server · 14 unmodified lines
1515 .I mountpoint
1616 .SH DESCRIPTION
1717 .I Rdbgsrv
18−is intended for use with versions of
19−.IR sboot (10.8)
20−that do not use
21−.IR styxmon (10.8),
22−but serve Styx directly.
23−.I Rdbgsrv
2418 interposes itself between
2519 .I dev
2620 (default:
2721 .BR /dev/eia0 )
2822 and
2923 .I mountpoint
30−to convey Styx messages via the serial port to and from a Styx server program
24+to convey 9P messages via the serial port to and from a 9P server program
3125 running on a board running native Inferno.
3226 The
3327 .B \-f
@@ -39,8 +33,8 @@ option sets the line speed; the default is 38400 baud. · 5 unmodified lines
3933 The
4034 .B \-d
4135 option selects debugging options by a bit mask:
42−1, print trace of Styx message types;
43−2, print actual Styx message contents.
36+1, print trace of 9P message types;
37+2, print actual 9P message contents.
4438 .PP
4539 The monitor program on the board must be started first.
4640 .I Rdbgsrv
@@ -49,63 +43,16 @@ writes the two byte message · 2 unmodified lines
4943 and keeps reading the device until it sees the reply
5044 .BR ok .
5145 It then attempts to mount the exported name space, and
52−copies Styx messages to and from the device.
46+copies 9P messages to and from the device.
5347 .PP
5448 Once
5549 .I rdbgsrv
56−is running, several device files provided by the program
50+is running, any device files provided by the program
5751 will be visible at
5852 .IR mountpoint .
59−The files include flash partitions, a console file, and a file representing
60−temporary storage in the device's memory:
61−.TF sbootconsole
62−.PD
63−.TP
64−.B sbootconsole
65−Accepts
66−.IR sboot (10.8)
67−commands.
68−When read, it returns output from recent commands.
69−.TP
70−.B tmp
71−Temporary memory buffer that accepts data to be copied to the flash.
72−.TP
73−.BI F! partition
74−Represents the flash partition with the name
75−.IR partition .
76−.PP
77−The following example
78−Inferno
79−session on the host mounts the serial device on
80−.BR /n/rdbg ,
81−and sends commands by writing to
82−.BR /n/rdbg/sbootconsole .
83−.IP
84−.EX
85−% bind -b '#t' /dev # ensure /dev/eia0 is visible
86−% auxi/rdbgsrv /n/rdbg
87−% ls /n/rdbg
88−/n/rdbg/F!kern
89−/n/rdbg/F!fs
90−/n/rdbg/sbootconsole
91−/n/rdbg/tmp
92−% cp /os/sa1100/isword.p9.gz /n/rdbg/F!kern # copy kernel
93−% cp /tmp/fs.tgz /n/rdbg/tmp # copy compressed file system
94−% echo c/u T! F!fs >/n/rdbg/sbootconsole
95−% cat /n/rdbg/sbootconsole
96−% echo P >/n/rdbg/sbootconsole
97−% echo b F!kern >/n/rdbg/sbootconsole # boot from F!kern
98−.EE
99−.PP
100−Copying a file containing
101−.I sboot
102−commands to
103−.B /n/rdbg/sbootconsole
104−has the same effect as writing the individual commands to the console.
10553 .SH SOURCE
10654 .B /appl/auxi/rdbgsrv.b
10755 .SH SEE ALSO
108−.IR sboot (10.8),
109−.IR styxmon (10.8)
56+.IR styxchat (8)
11057 .SH BUGS
11158 No error recovery is applied, let alone error correction.
man/8/styxchat+9−8
@@ -1,6 +1,6 @@
11 .TH STYXCHAT 8
22 .SH NAME
3−styxchat \- exchange Styx messages with a server or client
3+styxchat \- exchange 9P (Styx) messages with a server or client
44 .SH SYNOPSIS
55 .B styxchat
66 [
@@ -16,7 +16,8 @@ styxchat \- exchange Styx messages with a server or client · 9 unmodified lines
1616 ]
1717 .SH DESCRIPTION
1818 .I Styxchat
19−exchanges messages with a Styx service.
19+exchanges messages with a 9P service.
20+(9P was previously called `Styx' when used by Inferno, hence the command's name.)
2021 See
2122 .IR intro (5)
2223 for the protocol definition.
@@ -27,9 +28,9 @@ It makes a connection to a given · 4 unmodified lines
2728 if the
2829 .B -s
2930 option is specified),
30−then reads a textual representation of Styx T-messages from the standard
31+then reads a textual representation of 9P T-messages from the standard
3132 input and writes them on the connection, with a copy on standard output,
32−simultaneously reading Styx R-messages from the connection and printing a representation of them
33+simultaneously reading 9P R-messages from the connection and printing a representation of them
3334 on standard output.
3435 Each message is represented by one line
3536 on the standard output in the form of a literal of either
@@ -58,7 +59,7 @@ The · 22 unmodified lines
5859 option causes
5960 .I destination
6061 to be interpreted as a network address, as accepted by
61−.IR sys-dial (2)
62+.IR dial (2)
6263 (or
6364 .I listen
6465 with
@@ -67,7 +68,7 @@ If · 2 unmodified lines
6768 .I destination
6869 is not provided,
6970 .B styxchat
70−reads and writes Styx messages on its standard input,
71+reads and writes 9P messages on its standard input,
7172 using
7273 .B /dev/cons
7374 where it would usually use its standard input and output.
@@ -192,10 +193,10 @@ option, allowing data display to be enabled later. · 118 unmodified lines
192193 .PP
193194 By default,
194195 .I styxchat
195−sends a Styx client's T-messages and prints a server's R-messages.
196+sends a 9P client's T-messages and prints a server's R-messages.
196197 The
197198 .B -s
198−option causes it to present a server's view: it prints the T-messages from Styx clients, and sends R-messages
199+option causes it to present a server's view: it prints the T-messages from 9P clients, and sends R-messages
199200 as it reads a textual representation of them from standard input:
200201 .IP
201202 .br
man/8/styxmon+5−5
@@ -1,6 +1,6 @@
11 .TH STYXMON 8
22 .SH NAME
3−styxmon \- monitor a Styx conversation
3+styxmon \- monitor a 9P (Styx) conversation
44 .SH SYNOPSIS
55 .B styxmon
66 [
@@ -14,13 +14,13 @@ styxmon \- monitor a Styx conversation · 7 unmodified lines
1414 ]
1515 .SH DESCRIPTION
1616 .I Styxmon
17−allows the monitoring of styx messages sent and received
17+allows the monitoring of 9P messages sent and received
1818 by
1919 .IR cmd ,
20−which should serve Styx through its standard input.
20+which should serve 9P through its standard input.
2121 .I Styxmon
22−in its turn serves Styx through its standard input,
23−and writes information on the Styx messages that
22+in its turn serves 9P through its standard input,
23+and writes information on the 9P messages that
2424 it sees to the standard error.
2525 The
2626 .B -r
man/8/svc+9−1
@@ -5,6 +5,9 @@ svc: auth, net, registry, rstyx, styx \- start Inferno network services · 4 unmodified lines
55 .B svc/net
66 .br
77 .B svc/auth
8+[
9+.B -n
10+]
811 .br
912 .B svc/registry
1013 .br
@@ -38,6 +41,11 @@ file service or remote execution. · 27 unmodified lines
3841 .I Auth
3942 must be run (only) on a host that is to act as an authentication server,
4043 providing signing and other authentication services to itself and the network.
44+The
45+.B -n
46+flag tells it not to start
47+.IR keyfs (4),
48+perhaps because it has been started already.
4149 The files
4250 .BR /keydb/signerkey ,
4351 created by
@@ -85,7 +93,7 @@ putting it at the conventional location for the local registry, · 41 unmodified lines
8593 Initial (static) service descriptions are taken from
8694 .B /lib/ndb/registry
8795 if it exists.
88−It then starts a listener to give other hosts access to the registry as a Styx
96+It then starts a listener to give other hosts access to the registry as a 9P
8997 service at
9098 .BR tcp!*!registry ,
9199 normally port 6675.
module/secstore.m+9−9
@@ -9,15 +9,15 @@ Secstore: module · 8 unmodified lines
99 privacy: fn(): int;
1010 cansecstore: fn(addr: string, user: string): int;
1111 mkseckey: fn(pass: string): array of byte;
12− connect: fn(addr: string, user: string, pwhash: array of byte): (ref Sys->Connection, string, string);
13− dial: fn(addr: string): ref Sys->Connection;
14− auth: fn(conn: ref Sys->Connection, user: string, pwhash: array of byte): (string, string);
15− sendpin: fn(conn: ref Sys->Connection, pin: string): int;
16− files: fn(conn: ref Sys->Connection): list of (string, int, string, string, array of byte);
17− getfile: fn(conn: ref Sys->Connection, filename: string, maxsize: int): array of byte;
18− remove: fn(conn: ref Sys->Connection, filename: string): int;
19−# putfile: fn(conn: ref Sys->Connection, filename: string, data: array of byte,): int;
20− bye: fn(conn: ref Sys->Connection);
12+ connect: fn(addr: string, user: string, pwhash: array of byte): (ref Dial->Connection, string, string);
13+ dial: fn(addr: string): ref Dial->Connection;
14+ auth: fn(conn: ref Dial->Connection, user: string, pwhash: array of byte): (string, string);
15+ sendpin: fn(conn: ref Dial->Connection, pin: string): int;
16+ files: fn(conn: ref Dial->Connection): list of (string, int, string, string, array of byte);
17+ getfile: fn(conn: ref Dial->Connection, filename: string, maxsize: int): array of byte;
18+ remove: fn(conn: ref Dial->Connection, filename: string): int;
19+# putfile: fn(conn: ref Dial->Connection, filename: string, data: array of byte,): int;
20+ bye: fn(conn: ref Dial->Connection);
2121
2222 mkfilekey: fn(pass: string): array of byte;
2323 decrypt: fn(a: array of byte, key: array of byte): array of byte;