Searched refs:etctmp (Results 1 – 2 of 2) sorted by relevance
/titanic_50/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, "%s::%u:\n", group, gid); [all …]
|
/titanic_50/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_lgrp.c | 2559 FILE *etctmp; in smb_lgrp_pgrp_add() local 2581 etctmp = fopen(SMB_LGRP_PGRP_GRPTMP, "w+"); in smb_lgrp_pgrp_add() 2584 if (etctmp == NULL) { in smb_lgrp_pgrp_add() 2589 if (lockf(fileno(etctmp), F_LOCK, 0) != 0) { in smb_lgrp_pgrp_add() 2591 (void) fclose(etctmp); in smb_lgrp_pgrp_add() 2596 if (fchmod(fileno(etctmp), sb.st_mode) != 0 || in smb_lgrp_pgrp_add() 2597 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0) { in smb_lgrp_pgrp_add() 2598 (void) lockf(fileno(etctmp), F_ULOCK, 0); in smb_lgrp_pgrp_add() 2600 (void) fclose(etctmp); in smb_lgrp_pgrp_add() 2608 (void) fprintf(etctmp, "%s::%u:\n", group, gid); in smb_lgrp_pgrp_add() [all …]
|