lib9p: Remove postmountsrv (#505)
This commit is contained in:
@@ -19153,7 +19153,6 @@ posted /usr/local/plan9/man/man4/plumber.4
|
||||
posted /usr/local/plan9/man/man9/0intro.9p
|
||||
postfd /usr/local/plan9/man/man3/9p.3
|
||||
postmark /usr/local/plan9/man/man1/bundle.1
|
||||
postmountsrv /usr/local/plan9/man/man3/9p.3
|
||||
postnote /usr/local/plan9/man/man3/notify.3
|
||||
postnote /usr/local/plan9/man/man3/postnote.3
|
||||
postnote /usr/local/plan9/man/man3/rfork.3
|
||||
|
||||
@@ -6,7 +6,6 @@ emalloc9p,
|
||||
erealloc9p,
|
||||
estrdup9p,
|
||||
postfd,
|
||||
postmountsrv,
|
||||
readbuf,
|
||||
readstr,
|
||||
respond,
|
||||
@@ -61,7 +60,6 @@ typedef struct Srv {
|
||||
.ft L
|
||||
.ta \w'\fLvoid* 'u
|
||||
int srv(Srv *s)
|
||||
void postmountsrv(Srv *s, char *name, char *mtpt, int flag)
|
||||
void threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
|
||||
int postfd(char *srvname, int fd)
|
||||
void respond(Req *r, char *error)
|
||||
@@ -96,8 +94,6 @@ and
|
||||
writing the responses to
|
||||
.BR s->outfd .
|
||||
(Typically,
|
||||
.I postmountsrv
|
||||
or
|
||||
.I threadpostmountsrv
|
||||
initializes the
|
||||
.B infd
|
||||
@@ -148,12 +144,10 @@ but abort the program if they run out of memory.
|
||||
If alternate behavior is desired, clients can link against
|
||||
alternate implementations of these functions.
|
||||
.PP
|
||||
.I Postmountsrv
|
||||
and
|
||||
.I threadpostmountsrv
|
||||
are wrappers that create a separate process in which to run
|
||||
is a wrapper that creates a separate process in which to run
|
||||
.IR srv .
|
||||
They do the following:
|
||||
It does the following:
|
||||
.IP
|
||||
If
|
||||
.IB s -> nopipe
|
||||
@@ -296,9 +290,7 @@ the service functions.
|
||||
The service loop provided by
|
||||
.I srv
|
||||
(and indirectly by
|
||||
.I postmountsrv
|
||||
and
|
||||
.IR threadpostmountsrv )
|
||||
.I threadpostmountsrv )
|
||||
is single-threaded.
|
||||
If it is expected that some requests might
|
||||
block, arranging for alternate processes
|
||||
|
||||
@@ -50,7 +50,6 @@ emalloc9p 9p.3
|
||||
erealloc9p 9p.3
|
||||
estrdup9p 9p.3
|
||||
postfd 9p.3
|
||||
postmountsrv 9p.3
|
||||
readbuf 9p.3
|
||||
readstr 9p.3
|
||||
respond 9p.3
|
||||
|
||||
Reference in New Issue
Block a user