Searched refs:tempfd (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 125 static int tempfd = -1; variable 218 if (tempfd == -1) { in main() 220 tempfd = mkstemp(temp); in main() 221 if (tempfd == -1) { in main() 799 if ((tempfd = mkstemp(temp)) == -1 || in filename() 800 (tempdes = fdopen(tempfd, "w")) == NULL) in filename()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | files_attr.c | 912 int tempfd; in files_update_shadow() local 931 tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode); in files_update_shadow() 932 if (tempfd < 0) { in files_update_shadow() 936 (void) fchown(tempfd, (uid_t)0, stbuf.st_gid); in files_update_shadow() 938 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_shadow() 1015 int tempfd; in files_update_passwd() local 1028 if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { in files_update_passwd() 1032 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_passwd()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_pwdutil.c | 477 int tempfd; in smb_pwd_update() local 496 if ((tempfd = open(SMB_PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { in smb_pwd_update() 501 if ((dst = fdopen(tempfd, "wF")) == NULL) { in smb_pwd_update()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 122 static int tempfd = -1; /* To store fd between lockutx() and unlockutx() */ variable 1089 tempfd = fd; in lockutx() 1106 fd = tempfd; in unlockutx()
|