Home
last modified time | relevance | path

Searched refs:tempfd (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/cmd/sdiff/
H A Dsdiff.c127 static int tempfd = -1; variable
220 if (tempfd == -1) { in main()
222 tempfd = mkstemp(temp); in main()
223 if (tempfd == -1) { in main()
801 if ((tempfd = mkstemp(temp)) == -1 || in filename()
802 (tempdes = fdopen(tempfd, "w")) == NULL) in filename()
/titanic_41/usr/src/lib/passwdutil/
H A Dfiles_attr.c907 int tempfd; in files_update_shadow() local
926 tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode); in files_update_shadow()
927 if (tempfd < 0) { in files_update_shadow()
931 (void) fchown(tempfd, (uid_t)0, stbuf.st_gid); in files_update_shadow()
933 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_shadow()
1010 int tempfd; in files_update_passwd() local
1023 if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { in files_update_passwd()
1027 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_passwd()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c471 int tempfd; in smb_pwd_update() local
490 if ((tempfd = open(SMB_PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { in smb_pwd_update()
495 if ((dst = fdopen(tempfd, "wF")) == NULL) { in smb_pwd_update()
/titanic_41/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; in lockutx()
1107 fd = tempfd; in unlockutx()