Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c125 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 Dfiles_attr.c908 int tempfd; in files_update_shadow() local
927 tempfd = open(SHADTEMP, O_WRONLY|O_CREAT|O_TRUNC, filemode); in files_update_shadow()
928 if (tempfd < 0) { in files_update_shadow()
932 (void) fchown(tempfd, (uid_t)0, stbuf.st_gid); in files_update_shadow()
934 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_shadow()
1011 int tempfd; in files_update_passwd() local
1024 if ((tempfd = open(PASSTEMP, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { in files_update_passwd()
1028 if ((dst = fdopen(tempfd, "wF")) == NULL) { in files_update_passwd()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c477 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 Dgetutx.c122 static int tempfd = -1; /* To store fd between lockutx() and unlockutx() */ variable
1089 tempfd = fd; in lockutx()
1106 fd = tempfd; in unlockutx()