summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 22:00:23 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-03-08 22:00:23 +0100
commite9e55a21f66a3eff114025dcb1fe62570d0fa3e6 (patch)
tree779a635590ee01c03219b4054757ec7fc905904d /sys/man/2
parent11628e90fb85137a3f02e4ad5c343c15a90846b5 (diff)
lib9p: implement automatic remove-on-close cleanup in postsharesrv(), remove postfd() and sharefd() functions
with the latest changes to shr(3), we can use ORCLOSE on the control file to get the mount in the share automatically removed when the server exits or something goes wrong during postsharesrv(). do not expose postfd() and sharefd() functions. they where undocumented and leak the control file descriptors.
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/9p10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/man/2/9p b/sys/man/2/9p
index 49979828c..79b0a7275 100644
--- a/sys/man/2/9p
+++ b/sys/man/2/9p
@@ -1,12 +1,12 @@
.TH 9P 2
.SH NAME
Srv,
+chatty9p,
dirread9p,
emalloc9p,
erealloc9p,
estrdup9p,
listensrv,
-postfd,
postmountsrv,
postsharesrv,
readbuf,
@@ -72,7 +72,6 @@ void threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
void threadpostsharesrv(Srv *s, char *name, char *mtpt, char *desc)
void listensrv(Srv *s, char *addr)
void threadlistensrv(Srv *s, char *addr)
-int postfd(char *srvname, int fd)
void respond(Req *r, char *error)
void responderror(Req*)
void readstr(Req *r, char *src)
@@ -185,12 +184,9 @@ initialized as the other end.
.IP
If
.B name
-is non-nil, call
-.BI postfd( s -> srvfd ,
-.IB name )
-to post
+is non-nil, post the file descriptor
.IB s -> srvfd
-as
+under the name
.BI /srv/ name .
.IP
Fork a child process via