History

20091101-2150

forsyth committed 17 years ago

Commit 400101d1 parent 0aaf75e1 file · +21 −8Browse files

Unified · Split

man/2/sys-file2chan+21−8
@@ -120,20 +120,33 @@ is an empty or · 119 unmodified lines
120.B nil120.B nil
121string or an explanation of the problem.121string or an explanation of the problem.
122.PP122.PP
123If the client closes the file for reading (writing), the server will receive a
124.B read
125.RB ( write )
126message with a
127.B nil
128.I rc
129.BI ( wc )\f1.
130The server can use these signals to determine when to stop processing.
131The123The
132.I fid124.I fid
133received by the server can be used to manage the multiplexing of multiple125received by the server can be used to manage the multiplexing of multiple
134active clients sharing a single file; see126active clients sharing a single file; see
135.IR intro (5)127.IR intro (5)
136for details.128for details.
129Each distinct
130open of the file will yield a distinct
131.IR fid ,
132unique to that open, which will appear in the read and write
133messages corresponding to reads and writes on that open instance of the file.
134.PP
135When the client closes the file,
136the server will be sent a
137.B read
138message with a nil
139.IR rc ,
140then a
141.B write
142message with a nil
143.IR wc .
144A server typically ignores the former and uses the latter as a signal to stop processing for the given client
145(more precisely, the given
146.IR fid ).
147Note that the
148.I fid
149can later be re-used by another client.
137.SH SOURCE150.SH SOURCE
138.B /emu/port/devsrv.c151.B /emu/port/devsrv.c
139.br152.br