| /freebsd-13.1/contrib/apr/shmem/unix/ |
| H A D | shm.c | 158 int tmpfd; in apr_shm_create() local 184 status = apr_os_file_get(&tmpfd, file); in apr_shm_create() 190 MAP_SHARED, tmpfd, 0); in apr_shm_create() 298 status = apr_os_file_get(&tmpfd, file); in apr_shm_create() 324 if (tmpfd == -1) { in apr_shm_create() 328 status = apr_os_file_put(&file, &tmpfd, in apr_shm_create() 548 int tmpfd; in apr_shm_attach() local 560 if (tmpfd == -1) { in apr_shm_attach() 564 status = apr_os_file_put(&file, &tmpfd, in apr_shm_attach() 578 status = apr_os_file_get(&tmpfd, file); in apr_shm_attach() [all …]
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | auth-krb5.c | 244 int tmpfd, ret, oerrno; in ssh_krb5_cc_gen() local 254 tmpfd = mkstemp(ccname + strlen("FILE:")); in ssh_krb5_cc_gen() 257 if (tmpfd == -1) { in ssh_krb5_cc_gen() 262 if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) { in ssh_krb5_cc_gen() 265 close(tmpfd); in ssh_krb5_cc_gen() 268 close(tmpfd); in ssh_krb5_cc_gen()
|
| /freebsd-13.1/lib/libutil/ |
| H A D | uucplock.c | 67 int fd, tmpfd, i; in uu_lock() local 78 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, in uu_lock() 107 if (!put_pid (tmpfd, pid)) in uu_lock() 120 (void)close(tmpfd); in uu_lock()
|
| /freebsd-13.1/tests/sys/fs/fusefs/ |
| H A D | rename.cc | 45 int tmpfd = -1; member in Rename 49 if (tmpfd >= 0) { in TearDown() 50 close(tmpfd); in TearDown() 175 tmpfd = mkstemp(tmpfile); in TEST_F() 176 ASSERT_LE(0, tmpfd) << strerror(errno); in TEST_F()
|
| /freebsd-13.1/usr.sbin/edquota/ |
| H A D | edquota.c | 122 int i, quotatype, range, tmpfd; in main() local 289 tmpfd = mkostemp(tmpfil, O_CLOEXEC); in main() 290 fchown(tmpfd, getuid(), getgid()); in main() 293 if (writetimes(protoprivs, tmpfd, quotatype) != 0 && in main() 298 close(tmpfd); in main() 307 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0) in main() 313 close(tmpfd); in main()
|
| /freebsd-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | file.c | 151 int tmpfd; in isc_file_safemovefile() local 168 tmpfd = mkstemp(buf); in isc_file_safemovefile() 169 if (tmpfd > 0) in isc_file_safemovefile() 170 _close(tmpfd); in isc_file_safemovefile()
|
| /freebsd-13.1/tools/regression/security/cap_test/ |
| H A D | cap_test_capabilities.c | 435 int filefd, dirfd, tmpfd; in test_capabilities() local 453 tmpfd = open("/tmp", O_RDONLY | O_DIRECTORY); in test_capabilities() 454 if (tmpfd == -1) { in test_capabilities() 557 (void)unlinkat(tmpfd, file + strlen("/tmp/"), 0); in test_capabilities() 558 (void)unlinkat(tmpfd, dir + strlen("/tmp/"), AT_REMOVEDIR); in test_capabilities()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_write_disk_posix.c | 4218 acl = acl_get_fd(tmpfd); in copy_acls() 4249 int tmpfd; in create_tempdatafork() local 4253 tmpfd = mkstemp(tmpdatafork.s); in create_tempdatafork() 4254 if (tmpfd < 0) { in create_tempdatafork() 4265 close(tmpfd); in create_tempdatafork() 4266 tmpfd = -1; in create_tempdatafork() 4270 return (tmpfd); in create_tempdatafork() 4280 int dffd, tmpfd; in copy_metadata() local 4283 if (tmpfd == -1) in copy_metadata() 4295 close(tmpfd); in copy_metadata() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check/ |
| H A D | libzfs_input_check.c | 786 int tmpfd, err; in zfs_ioc_input_tests() local 806 tmpfd = mkstemp(filepath); in zfs_ioc_input_tests() 807 if (tmpfd < 0) { in zfs_ioc_input_tests() 829 test_send_new(snapshot, tmpfd); in zfs_ioc_input_tests() 830 test_recv_new(backup, tmpfd); in zfs_ioc_input_tests() 880 (void) close(tmpfd); in zfs_ioc_input_tests()
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | prompt.c | 178 apr_file_t *tmpfd; in terminal_open() local 179 status = apr_file_open(&tmpfd, "/dev/tty", in terminal_open() 186 terminal_handle_init(*terminal, tmpfd, tmpfd, FALSE, TRUE, pool); in terminal_open()
|
| /freebsd-13.1/contrib/elftoolchain/elfcopy/ |
| H A D | main.c | 599 int tmpfd; in copy_from_tempfile() local 621 if ((tmpfd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0755)) < 0) in copy_from_tempfile() 624 if (elftc_copyfile(infd, tmpfd) < 0) { in copy_from_tempfile() 625 (void) close(tmpfd); in copy_from_tempfile() 634 (void) close(tmpfd); in copy_from_tempfile() 643 *outfd = tmpfd; in copy_from_tempfile()
|
| /freebsd-13.1/contrib/capsicum-test/ |
| H A D | capability-fd.cc | 944 int tmpfd = open(tmpdir.c_str(), O_RDONLY | O_DIRECTORY); in DirOperationsTest() local 945 EXPECT_OK(tmpfd); in DirOperationsTest() 974 EXPECT_OK(unlinkat(tmpfd, "cap_dirops", AT_REMOVEDIR)); in DirOperationsTest() 975 EXPECT_OK(close(tmpfd)); in DirOperationsTest()
|