Searched refs:etctmp (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/oamuser/group/ |
H A D | add_group.c | 44 FILE *etctmp; /* temp file */ local 60 etctmp = fopen(GRPTMP, "w+"); 63 if (etctmp == NULL) { 68 if (fchmod(fileno(etctmp), sb.st_mode) != 0 || 69 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0 || 70 lockf(fileno(etctmp), F_LOCK, 0) != 0) { 72 fclose(etctmp); 80 (void) fprintf(etctmp, "%s::%u:\n", group, gid); 84 fputs(buf, etctmp); 91 (void) fprintf(etctmp, "%s::%u:\n", group, gid); [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_lgrp.c | 2570 FILE *etctmp; in smb_lgrp_pgrp_add() local 2592 etctmp = fopen(SMB_LGRP_PGRP_GRPTMP, "w+"); in smb_lgrp_pgrp_add() 2595 if (etctmp == NULL) { in smb_lgrp_pgrp_add() 2600 if (lockf(fileno(etctmp), F_LOCK, 0) != 0) { in smb_lgrp_pgrp_add() 2602 (void) fclose(etctmp); in smb_lgrp_pgrp_add() 2607 if (fchmod(fileno(etctmp), sb.st_mode) != 0 || in smb_lgrp_pgrp_add() 2608 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0) { in smb_lgrp_pgrp_add() 2609 (void) lockf(fileno(etctmp), F_ULOCK, 0); in smb_lgrp_pgrp_add() 2611 (void) fclose(etctmp); in smb_lgrp_pgrp_add() 2619 (void) fprintf(etctmp, "%s::%u:\n", group, gid); in smb_lgrp_pgrp_add() [all …]
|