Lines Matching defs:etctmp
2604 FILE *etctmp;
2627 etctmp = fopen(SMB_LGRP_PGRP_GRPTMP, "w+");
2630 if (etctmp == NULL) {
2635 if (lockf(fileno(etctmp), F_LOCK, 0) != 0) {
2637 (void) fclose(etctmp);
2642 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
2643 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0) {
2644 (void) lockf(fileno(etctmp), F_ULOCK, 0);
2646 (void) fclose(etctmp);
2654 (void) fprintf(etctmp, "%s::%u:\n", group, gid);
2658 (void) fputs(buf, etctmp);
2663 (void) fprintf(etctmp, "%s::%u:\n", group, gid);
2666 (void) lockf(fileno(etctmp), F_ULOCK, 0);
2667 (void) fclose(etctmp);
2672 (void) lockf(fileno(etctmp), F_ULOCK, 0);
2673 (void) fclose(etctmp);