Searched refs:tmpfd (Results 1 - 5 of 5) sorted by relevance

/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dxmmap.c64 int tmpfd; local
68 tmpfd = mkstemp(tmpname);
70 if (tmpfd == -1)
74 if (ftruncate(tmpfd, size) != 0)
77 tmpfd, (off_t)0);
78 close(tmpfd);
/freebsd-9.3-release/lib/libutil/
H A Duucplock.c68 int fd, tmpfd, i; local
79 if ((tmpfd = creat(lcktmpname, 0664)) < 0)
107 if (!put_pid (tmpfd, pid))
120 (void)close(tmpfd);
/freebsd-9.3-release/crypto/openssh/
H A Dauth-krb5.c243 int tmpfd, ret, oerrno; local
253 tmpfd = mkstemp(ccname + strlen("FILE:"));
256 if (tmpfd == -1) {
261 if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) {
264 close(tmpfd);
267 close(tmpfd);
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/
H A Dfile.c151 int tmpfd; local
168 tmpfd = mkstemp(buf);
169 if (tmpfd > 0)
170 _close(tmpfd);
/freebsd-9.3-release/usr.sbin/edquota/
H A Dedquota.c122 int i, quotatype, range, tmpfd; local
289 tmpfd = mkstemp(tmpfil);
290 fchown(tmpfd, getuid(), getgid());
293 if (writetimes(protoprivs, tmpfd, quotatype) != 0 &&
298 close(tmpfd);
307 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0)
313 close(tmpfd);

Completed in 101 milliseconds