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,
|
||||
respond,
|
||||
responderror,
|
||||
srv
|
||||
srv,
|
||||
srvacquire,
|
||||
srvforker,
|
||||
srvrelease,
|
||||
|
@ -23,7 +23,11 @@ threadpostmountsrv,
|
|||
threadpostsharesrv,
|
||||
threadpostsrv,
|
||||
threadsrv,
|
||||
threadsrvforker - 9P file service
|
||||
threadsrvforker,
|
||||
auth9p,
|
||||
authattach,
|
||||
authread,
|
||||
authwrite \- 9P file service
|
||||
.SH SYNOPSIS
|
||||
.ft L
|
||||
.nf
|
||||
|
@ -114,6 +118,15 @@ char* estrdup9p(char *s)
|
|||
.ft L
|
||||
extern int chatty9p;
|
||||
.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
|
||||
The function
|
||||
.I srv
|
||||
|
@ -814,6 +827,40 @@ from its caller) terminates using
|
|||
.IR exits (2)).
|
||||
.PD
|
||||
.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
|
||||
.B chatty9p
|
||||
flag is at least one,
|
||||
|
|
Loading…
Reference in a new issue