Searched defs:etctmp (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/oamuser/group/
H A Dadd_group.c47 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...]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_lgrp.c2559 FILE *etctmp; local
2581 etctmp = fopen(SMB_LGRP_PGRP_GRPTMP, "w+");
2584 if (etctmp == NULL) {
2589 if (lockf(fileno(etctmp), F_LOCK, 0) != 0) {
2591 (void) fclose(etctmp);
2596 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
2597 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0) {
2598 (void) lockf(fileno(etctmp), F_ULOCK, 0);
2600 (void) fclose(etctmp);
2608 (void) fprintf(etctmp, "
[all...]

Completed in 62 milliseconds