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

/freebsd-10.2-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-10.2-release/lib/libutil/
H A Duucplock.c68 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-10.2-release/contrib/apr/shmem/unix/
H A Dshm.c157 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-10.2-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-10.2-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-10.2-release/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c435 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-10.2-release/usr.sbin/edquota/
H A Dedquota.c120 int i, quotatype, range, tmpfd; local
287 tmpfd = mkstemp(tmpfil);
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-10.2-release/contrib/subversion/subversion/libsvn_subr/
H A Dprompt.c180 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-10.2-release/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c3525 copy_xattrs(struct archive_write_disk *a, int tmpfd, int dffd) argument
3531 xattr_size = flistxattr(tmpfd, NULL, 0, 0);
3545 xattr_size = flistxattr(tmpfd, xattr_names, xattr_size, 0);
3557 s = fgetxattr(tmpfd, xattr_names + xattr_i, NULL, 0, 0, 0);
3571 s = fgetxattr(tmpfd, xattr_names + xattr_i, xattr_val, s, 0, 0);
3594 copy_acls(struct archive_write_disk *a, int tmpfd, int dffd) argument
3599 acl = acl_get_fd(tmpfd);
3629 int tmpfd; local
3633 tmpfd = mkstemp(tmpdatafork.s);
3634 if (tmpfd <
3660 int dffd, tmpfd; local
[all...]

Completed in 84 milliseconds