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

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

Completed in 65 milliseconds