first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
This commit is contained in:
16
sys/src/lib/authsrv/_asrequest.c
Normal file
16
sys/src/lib/authsrv/_asrequest.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <authsrv.h>
|
||||
|
||||
int
|
||||
_asrequest(int fd, Ticketreq *tr)
|
||||
{
|
||||
char trbuf[TICKREQLEN];
|
||||
int n;
|
||||
|
||||
n = convTR2M(tr, trbuf, sizeof(trbuf));
|
||||
if(write(fd, trbuf, n) != n)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user