Searched defs:tempfd (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/passwdutil/
H A Dfiles_attr.c907 int tempfd; local
926 tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode);
927 if (tempfd < 0) {
931 (void) fchown(tempfd, (uid_t)0, stbuf.st_gid);
933 if ((dst = fdopen(tempfd, "wF")) == NULL) {
1010 int tempfd; local
1023 if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
1027 if ((dst = fdopen(tempfd, "wF")) == NULL) {
/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c127 static int tempfd = -1; variable
220 if (tempfd == -1) {
222 tempfd = mkstemp(temp);
223 if (tempfd == -1) {
801 if ((tempfd = mkstemp(temp)) == -1 ||
802 (tempdes = fdopen(tempfd, "w")) == NULL)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c122 static int tempfd = -1; /* To store fd between lockutx() and unlockutx() */ variable
1090 tempfd = fd;
1107 fd = tempfd;
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c477 int tempfd; local
496 if ((tempfd = open(SMB_PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) {
501 if ((dst = fdopen(tempfd, "wF")) == NULL) {

Completed in 113 milliseconds