/* Copyright (c) 1979 Regents of the University of California */
static char line
[BUFSIZ
+1];
static struct passwd passwd
;
pwf
= open( "/etc/passwd", 0 );
if( (pwf
= open( "/etc/passwd", 0 )) == -1 )
i
= read(pwf
, line
, BUFSIZ
);
lseek(pwf
, (long) (j
- i
), 1);
/* passwd.pw_passwd = p; */
/* passwd.pw_uid = atoi(p); */
/* passwd.pw_gid = atoi(p); */
/* passwd.pw_quota = 0; */
/* passwd.pw_comment = ""; */
passwd
.pw_uid
=+ atou(q
) << 8;
passwd
.pw_uid
=+ atou(q
) << 8;
/* passwd.pw_gecos = p; */
/* passwd.pw_shell = p; */
/* while(*p && *p != '\n') p++; */