Lines Matching refs:tmpfd
3525 copy_xattrs(struct archive_write_disk *a, int tmpfd, int dffd)
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)
3599 acl = acl_get_fd(tmpfd);
3629 int tmpfd;
3633 tmpfd = mkstemp(tmpdatafork.s);
3634 if (tmpfd < 0) {
3645 close(tmpfd);
3646 tmpfd = -1;
3650 return (tmpfd);
3660 int dffd, tmpfd;
3662 tmpfd = create_tempdatafork(a, metadata);
3663 if (tmpfd == -1)
3675 close(tmpfd);
3680 ret = copy_xattrs(a, tmpfd, dffd);
3683 ret = copy_acls(a, tmpfd, dffd);
3684 close(tmpfd);