/freebsd-current/lib/libutil/ |
H A D | uucplock.c | 64 int fd, tmpfd, i; local 75 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, 104 if (!put_pid (tmpfd, pid)) 117 (void)close(tmpfd);
|
/freebsd-current/crypto/openssh/ |
H A D | auth-krb5.c | 244 int tmpfd, ret, oerrno; local 254 tmpfd = mkstemp(ccname + strlen("FILE:")); 257 if (tmpfd == -1) { 262 if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { 265 close(tmpfd); 268 close(tmpfd);
|
/freebsd-current/tests/sys/fs/fusefs/ |
H A D | rename.cc | 43 int tmpfd = -1; member in class:Rename 47 if (tmpfd >= 0) { 48 close(tmpfd); 173 tmpfd = mkstemp(tmpfile); 174 ASSERT_LE(0, tmpfd) << strerror(errno);
|
/freebsd-current/sbin/reboot/ |
H A D | reboot.c | 119 int tmpfd; local 147 tmpfd = mkstemp(tmp); 148 if (tmpfd == -1) 151 fp = fdopen(tmpfd, "w");
|
/freebsd-current/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 432 int filefd, dirfd, tmpfd; local 450 tmpfd = open("/tmp", O_RDONLY | O_DIRECTORY); 451 if (tmpfd == -1) { 554 (void)unlinkat(tmpfd, file + strlen("/tmp/"), 0); 555 (void)unlinkat(tmpfd, dir + strlen("/tmp/"), AT_REMOVEDIR);
|
/freebsd-current/usr.sbin/edquota/ |
H A D | edquota.c | 107 int i, quotatype, range, tmpfd; local 274 tmpfd = mkostemp(tmpfil, O_CLOEXEC); 275 fchown(tmpfd, getuid(), getgid()); 278 if (writetimes(protoprivs, tmpfd, quotatype) != 0 && 283 close(tmpfd); 292 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0) 298 close(tmpfd);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | libzfs_input_check.c | 804 int tmpfd, err; 824 tmpfd = mkstemp(filepath); 825 if (tmpfd < 0) { 847 test_send_new(snapshot, tmpfd); 848 test_recv_new(backup, tmpfd); 900 (void) close(tmpfd); 802 int tmpfd, err; local
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 4170 copy_xattrs(struct archive_write_disk *a, int tmpfd, int dffd) argument 4176 xattr_size = flistxattr(tmpfd, NULL, 0, 0); 4190 xattr_size = flistxattr(tmpfd, xattr_names, xattr_size, 0); 4203 s = fgetxattr(tmpfd, xattr_names + xattr_i, NULL, 0, 0, 0); 4219 s = fgetxattr(tmpfd, xattr_names + xattr_i, xattr_val, s, 0, 0); 4242 copy_acls(struct archive_write_disk *a, int tmpfd, int dffd) argument 4250 acl = acl_get_fd(tmpfd); 4281 int tmpfd; local 4285 tmpfd = mkstemp(tmpdatafork.s); 4286 if (tmpfd < 4312 int dffd, tmpfd; local [all...] |
/freebsd-current/contrib/elftoolchain/elfcopy/ |
H A D | main.c | 599 int tmpfd; local 621 if ((tmpfd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0755)) < 0) 624 if (elftc_copyfile(infd, tmpfd) < 0) { 625 (void) close(tmpfd); 634 (void) close(tmpfd); 643 *outfd = tmpfd;
|
/freebsd-current/contrib/capsicum-test/ |
H A D | capability-fd.cc | 944 int tmpfd = open(tmpdir.c_str(), O_RDONLY | O_DIRECTORY); local 945 EXPECT_OK(tmpfd); 974 EXPECT_OK(unlinkat(tmpfd, "cap_dirops", AT_REMOVEDIR)); 975 EXPECT_OK(close(tmpfd));
|