2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
28 if (pich
== 0) pich
= open("/etc/passwd",0);
29 if (pich
< 0) return(1);
33 uid
=& 0377; /* not for harv unix */
37 while((c
=pwgetc(&pbuf
)) != '\n') {
38 if (c
<= 0) return(1);
45 while((c
= *bp
++) != ':')
46 if (c
== '\n') return(1);
47 while((c
= *bp
++) != ':') {
48 if (c
< '0' || c
> '9') continue;
51 if (n
== uid
) return(0);
59 register struct buf
*bp
;
62 if (--bp
->nleft
< 0) {
63 bp
->nleft
= read(bp
->fildes
,bp
->buff
,512)-1;
64 if (bp
->nleft
< 0) return(-1);