Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpw.c41 static FILE *pwf; variable
53 if (pwf == NULL) { in getpw()
56 if (pwf == NULL) { in getpw()
57 if ((pwf = fp) == NULL) { in getpw()
68 FLOCKFILE(lk, pwf); in getpw()
69 _rewind_unlocked(pwf); in getpw()
73 while ((c = GETC(pwf)) != '\n') { in getpw()
/illumos-gate/usr/src/tools/cscope-fast/
H A Dlogdir.c64 int pwf; in logdir() local
67 if ((pwf = open("/etc/passwd", O_RDONLY)) == -1) in logdir()
73 i = read(pwf, line, BUFSIZ); in logdir()
82 (void) lseek(pwf, (long)(j - i), 1); in logdir()
86 (void) close(pwf); in logdir()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdel.c75 FILE *pwf; /* fille ptr for opened passwd file */ in main() local
121 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
125 while ((pstruct = fgetpwent(pwf)) != NULL) in main()
129 fclose(pwf); in main()
H A Dusermod.c158 FILE *pwf; /* fille ptr for opened passwd file */ local
333 if ((pwf = fopen("/etc/passwd", "r")) == NULL) {
337 while ((pw = fgetpwent(pwf)) != NULL)
341 fclose(pwf);
/illumos-gate/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()
/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c108 FILE *pwf; in main() local
222 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
230 if ((pwdp = fgetpwent(pwf)) != NULL) { in main()
381 if (feof(pwf)) { in main()
394 (void) fclose(pwf); in main()
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c296 FILE *pwf, *spf, *uaf; in main() local
812 if ((pwf = fopen("/etc/passwd", "r")) == NULL) { in main()
826 pw_ptr1p = fgetpwent(pwf); in main()
828 if (!feof(pwf)) { in main()
948 cur_pos = ftell(pwf); in main()
999 if (fseek(pwf, NIS_pos, SEEK_SET) < 0) { in main()
1003 while ((n = fread(buf, sizeof (char), 1024, pwf)) > 0) { in main()
1013 (void) fclose(pwf); in main()