Searched refs:etctmp (Results 1 - 2 of 2) sorted by relevance
/opensolaris-onvv-gate/usr/src/cmd/oamuser/group/ |
H A D | add_group.c | 47 FILE *etctmp; /* temp file */ local 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, " [all...] |
/opensolaris-onvv-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_lgrp.c | 2604 FILE *etctmp; local 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, " [all...] |
Completed in 108 milliseconds