lib9p: add auth* functions to man page
This commit is contained in:
parent
8ab397c23c
commit
370ef39bf9
1 changed files with 49 additions and 2 deletions
51
sys/man/2/9p
51
sys/man/2/9p
|
@ -14,7 +14,7 @@ readbuf,
|
||||||
readstr,
|
readstr,
|
||||||
respond,
|
respond,
|
||||||
responderror,
|
responderror,
|
||||||
srv
|
srv,
|
||||||
srvacquire,
|
srvacquire,
|
||||||
srvforker,
|
srvforker,
|
||||||
srvrelease,
|
srvrelease,
|
||||||
|
@ -23,7 +23,11 @@ threadpostmountsrv,
|
||||||
threadpostsharesrv,
|
threadpostsharesrv,
|
||||||
threadpostsrv,
|
threadpostsrv,
|
||||||
threadsrv,
|
threadsrv,
|
||||||
threadsrvforker - 9P file service
|
threadsrvforker,
|
||||||
|
auth9p,
|
||||||
|
authattach,
|
||||||
|
authread,
|
||||||
|
authwrite \- 9P file service
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.ft L
|
.ft L
|
||||||
.nf
|
.nf
|
||||||
|
@ -114,6 +118,15 @@ char* estrdup9p(char *s)
|
||||||
.ft L
|
.ft L
|
||||||
extern int chatty9p;
|
extern int chatty9p;
|
||||||
.fi
|
.fi
|
||||||
|
.PP
|
||||||
|
.nf
|
||||||
|
.ft L
|
||||||
|
.ta \w'\fLvoid* 'u
|
||||||
|
void auth9p(Req *r);
|
||||||
|
int authattach(Req *r);
|
||||||
|
void authread(Req *r);
|
||||||
|
void authwrite(Req *r);
|
||||||
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The function
|
The function
|
||||||
.I srv
|
.I srv
|
||||||
|
@ -814,6 +827,40 @@ from its caller) terminates using
|
||||||
.IR exits (2)).
|
.IR exits (2)).
|
||||||
.PD
|
.PD
|
||||||
.PP
|
.PP
|
||||||
|
.I Auth9p,
|
||||||
|
.I authattach,
|
||||||
|
.I authwrite,
|
||||||
|
and
|
||||||
|
.I authread
|
||||||
|
are functions to assist in the creation of authenticated
|
||||||
|
file servers.
|
||||||
|
.I Auth9p
|
||||||
|
sets
|
||||||
|
.I afid
|
||||||
|
to point to
|
||||||
|
.B /mnt/factotum/rpc
|
||||||
|
then calls
|
||||||
|
.I respond.
|
||||||
|
It can be used as the
|
||||||
|
.I auth
|
||||||
|
service function address.
|
||||||
|
.I Authattach
|
||||||
|
will return 0 if the session has properly
|
||||||
|
authenticated or will return -1 and
|
||||||
|
call
|
||||||
|
.I respond
|
||||||
|
with an apropiate error.
|
||||||
|
.I Authread
|
||||||
|
and
|
||||||
|
.I authwrite
|
||||||
|
can be called from the
|
||||||
|
.I read
|
||||||
|
and
|
||||||
|
.I write
|
||||||
|
service functions respectfully to handle
|
||||||
|
calls on the
|
||||||
|
.I afid.
|
||||||
|
.PP
|
||||||
If the
|
If the
|
||||||
.B chatty9p
|
.B chatty9p
|
||||||
flag is at least one,
|
flag is at least one,
|
||||||
|
|
Loading…
Reference in a new issue