/freebsd-13-stable/lib/libutil/ |
H A D | uucplock.c | 67 int fd, tmpfd, i; local 78 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, 107 if (!put_pid (tmpfd, pid)) 120 (void)close(tmpfd);
|
/freebsd-13-stable/contrib/apr/shmem/unix/ |
H A D | shm.c | 158 int tmpfd; local 184 status = apr_os_file_get(&tmpfd, file); 190 MAP_SHARED, tmpfd, 0); 298 status = apr_os_file_get(&tmpfd, file); 313 MAP_SHARED, tmpfd, 0); 323 tmpfd = shm_open(shm_name, O_RDWR | O_CREAT | O_EXCL, 0644); 324 if (tmpfd == -1) { 328 status = apr_os_file_put(&file, &tmpfd, 341 MAP_SHARED, tmpfd, 0); 548 int tmpfd; local [all...] |
/freebsd-13-stable/crypto/openssh/ |
H A D | auth-krb5.c | 243 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-13-stable/tests/sys/fs/fusefs/ |
H A D | rename.cc | 45 int tmpfd = -1; member in class:Rename 49 if (tmpfd >= 0) { 50 close(tmpfd); 175 tmpfd = mkstemp(tmpfile); 176 ASSERT_LE(0, tmpfd) << strerror(errno);
|
/freebsd-13-stable/contrib/ntp/lib/isc/win32/ |
H A D | file.c | 151 int tmpfd; local 168 tmpfd = mkstemp(buf); 169 if (tmpfd > 0) 170 _close(tmpfd);
|
/freebsd-13-stable/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 435 int filefd, dirfd, tmpfd; local 453 tmpfd = open("/tmp", O_RDONLY | O_DIRECTORY); 454 if (tmpfd == -1) { 557 (void)unlinkat(tmpfd, file + strlen("/tmp/"), 0); 558 (void)unlinkat(tmpfd, dir + strlen("/tmp/"), AT_REMOVEDIR);
|
/freebsd-13-stable/usr.sbin/edquota/ |
H A D | edquota.c | 122 int i, quotatype, range, tmpfd; local 289 tmpfd = mkostemp(tmpfil, O_CLOEXEC); 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);
|
/freebsd-13-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | prompt.c | 180 apr_file_t *tmpfd; 181 status = apr_file_open(&tmpfd, "/dev/tty", 188 terminal_handle_init(*terminal, tmpfd, tmpfd, FALSE, TRUE, pool); 178 apr_file_t *tmpfd; local
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check/ |
H A D | libzfs_input_check.c | 786 int tmpfd, err; local 806 tmpfd = mkstemp(filepath); 807 if (tmpfd < 0) { 829 test_send_new(snapshot, tmpfd); 830 test_recv_new(backup, tmpfd); 880 (void) close(tmpfd);
|
/freebsd-13-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 4011 copy_xattrs(struct archive_write_disk *a, int tmpfd, int dffd) argument 4017 xattr_size = flistxattr(tmpfd, NULL, 0, 0); 4031 xattr_size = flistxattr(tmpfd, xattr_names, xattr_size, 0); 4044 s = fgetxattr(tmpfd, xattr_names + xattr_i, NULL, 0, 0, 0); 4060 s = fgetxattr(tmpfd, xattr_names + xattr_i, xattr_val, s, 0, 0); 4083 copy_acls(struct archive_write_disk *a, int tmpfd, int dffd) argument 4091 acl = acl_get_fd(tmpfd); 4122 int tmpfd; local 4126 tmpfd = mkstemp(tmpdatafork.s); 4127 if (tmpfd < 4153 int dffd, tmpfd; local [all...] |
/freebsd-13-stable/contrib/elftoolchain/elfcopy/ |
H A D | main.c | 578 int tmpfd; local 600 if ((tmpfd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0755)) < 0) 603 if (elftc_copyfile(infd, tmpfd) < 0) { 604 (void) close(tmpfd); 613 (void) close(tmpfd); 622 *outfd = tmpfd;
|
/freebsd-13-stable/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));
|