/freebsd-11.0-release/crypto/openssh/openbsd-compat/ |
H A D | xmmap.c | 64 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-11.0-release/contrib/apr/shmem/unix/ |
H A D | shm.c | 157 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); 538 int tmpfd; local [all...] |
/freebsd-11.0-release/lib/libutil/ |
H A D | uucplock.c | 68 int fd, tmpfd, i; local 79 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, 108 if (!put_pid (tmpfd, pid)) 121 (void)close(tmpfd);
|
/freebsd-11.0-release/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-11.0-release/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-11.0-release/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-11.0-release/usr.sbin/edquota/ |
H A D | edquota.c | 120 int i, quotatype, range, tmpfd; local 287 tmpfd = mkostemp(tmpfil, O_CLOEXEC); 288 fchown(tmpfd, getuid(), getgid()); 291 if (writetimes(protoprivs, tmpfd, quotatype) != 0 && 296 close(tmpfd); 305 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0) 311 close(tmpfd);
|
/freebsd-11.0-release/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-11.0-release/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 3590 copy_xattrs(struct archive_write_disk *a, int tmpfd, int dffd) argument 3596 xattr_size = flistxattr(tmpfd, NULL, 0, 0); 3610 xattr_size = flistxattr(tmpfd, xattr_names, xattr_size, 0); 3623 s = fgetxattr(tmpfd, xattr_names + xattr_i, NULL, 0, 0, 0); 3639 s = fgetxattr(tmpfd, xattr_names + xattr_i, xattr_val, s, 0, 0); 3662 copy_acls(struct archive_write_disk *a, int tmpfd, int dffd) argument 3670 acl = acl_get_fd(tmpfd); 3701 int tmpfd; local 3705 tmpfd = mkstemp(tmpdatafork.s); 3706 if (tmpfd < 3732 int dffd, tmpfd; local [all...] |
/freebsd-11.0-release/contrib/elftoolchain/elfcopy/ |
H A D | main.c | 560 int tmpfd; local 582 if ((tmpfd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0755)) < 0) 585 if (elftc_copyfile(infd, tmpfd) < 0) 600 *outfd = tmpfd;
|