Home
last modified time | relevance | path

Searched refs:pwf (Results 1 – 7 of 7) sorted by relevance

/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetpw.c43 static FILE *pwf; variable
55 if (pwf == NULL) { in getpw()
58 if (pwf == NULL) { in getpw()
59 if ((pwf = fp) == NULL) { in getpw()
70 FLOCKFILE(lk, pwf); in getpw()
71 _rewind_unlocked(pwf); in getpw()
75 while ((c = GETC(pwf)) != '\n') { in getpw()
/titanic_41/usr/src/tools/cscope-fast/
H A Dlogdir.c66 int pwf; in logdir() local
69 if ((pwf = open("/etc/passwd", O_RDONLY)) == -1) in logdir()
75 i = read(pwf, line, BUFSIZ); in logdir()
84 (void) lseek(pwf, (long)(j - i), 1); in logdir()
88 (void) close(pwf); in logdir()
/titanic_41/usr/src/cmd/oamuser/user/
H A Duserdel.c74 FILE *pwf; /* fille ptr for opened passwd file */ in main() local
120 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
124 while ((pstruct = fgetpwent(pwf)) != NULL) in main()
128 fclose(pwf); in main()
H A Dusermod.c157 FILE *pwf; /* fille ptr for opened passwd file */ local
316 if ((pwf = fopen("/etc/passwd", "r")) == NULL) {
320 while ((pw = fgetpwent(pwf)) != NULL)
324 fclose(pwf);
/titanic_41/usr/src/cmd/acct/
H A Dacctdusg.c79 FILE *pwf; in main() local
100 if ((pwf = fopen(pfile, "r")) == NULL) { in main()
104 while ((pw = fgetpwent(pwf)) != NULL) { in main()
109 (void) fclose(pwf); in main()
/titanic_41/usr/src/cmd/pwconv/
H A Dpwconv.c110 FILE *pwf; in main() local
225 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
233 if ((pwdp = fgetpwent(pwf)) != NULL) { in main()
378 if (feof(pwf)) { in main()
391 (void) fclose(pwf); in main()
/titanic_41/usr/src/cmd/passmgmt/
H A Dpassmgmt.c294 FILE *pwf, *spf, *uaf; in main() local
810 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
824 pw_ptr1p = fgetpwent(pwf); in main()
826 if (!feof(pwf)) { in main()
946 cur_pos = ftell(pwf); in main()
997 if (fseek(pwf, NIS_pos, SEEK_SET) < 0) { in main()
1001 while ((n = fread(buf, sizeof (char), 1024, pwf)) > 0) { in main()
1011 (void) fclose(pwf); in main()