Skip to content

Commit

Permalink
lib9p: Remove postmountsrv (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuntsman authored and dancrossnyc committed Aug 31, 2021
1 parent aa01c23 commit 385a6d5
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 127 deletions.
1 change: 0 additions & 1 deletion include/9p.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ struct Srv {
};

void srv(Srv*);
void postmountsrv(Srv*, char*, char*, int);
int postfd(char*, int);
extern int chatty9p;
void respond(Req*, char*);
Expand Down
1 change: 0 additions & 1 deletion man/lookman.index
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 3 additions & 11 deletions man/man3/9p.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ emalloc9p,
erealloc9p,
estrdup9p,
postfd,
postmountsrv,
readbuf,
readstr,
respond,
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -96,8 +94,6 @@ and
writing the responses to
.BR s->outfd .
(Typically,
.I postmountsrv
or
.I threadpostmountsrv
initializes the
.B infd
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion man/man3/INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
77 changes: 0 additions & 77 deletions src/lib9p/_post.c

This file was deleted.

23 changes: 0 additions & 23 deletions src/lib9p/post.c

This file was deleted.

13 changes: 0 additions & 13 deletions src/lib9p/post.h

This file was deleted.

0 comments on commit 385a6d5

Please sign in to comment.