Lines Matching defs:etctmp
47 FILE *etctmp; /* temp file */
63 etctmp = fopen(GRPTMP, "w+");
66 if (etctmp == NULL) {
71 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
72 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0 ||
73 lockf(fileno(etctmp), F_LOCK, 0) != 0) {
75 fclose(etctmp);
83 (void) fprintf(etctmp, "%s::%u:\n", group, gid);
87 fputs(buf, etctmp);
94 (void) fprintf(etctmp, "%s::%u:\n", group, gid);
98 fclose(etctmp);
103 (void) fclose(etctmp);