Home
last modified time | relevance | path

Searched refs:target_fd (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/dissect/
Ddissect.c706 _cleanup_close_ int source_fd = -1, target_fd = -1; in action_copy() local
736target_fd = open(arg_target, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0600); in action_copy()
737 if (target_fd < 0) in action_copy()
740 r = copy_bytes(source_fd, target_fd, UINT64_MAX, COPY_REFLINK); in action_copy()
744 (void) copy_xattr(source_fd, target_fd, 0); in action_copy()
745 (void) copy_access(source_fd, target_fd); in action_copy()
746 (void) copy_times(source_fd, target_fd, 0); in action_copy()
751 _cleanup_close_ int source_fd = -1, target_fd = -1; in action_copy() local
767target_fd = openat(dfd, basename(arg_target), O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY|O_EXCL, 0644); in action_copy()
768 if (target_fd < 0) in action_copy()
[all …]
/systemd-251/src/shared/
Dmount-util.h38 int mount_fd(const char *source, int target_fd, const char *filesystemtype, unsigned long mountflag…
Dbpf-program.c256 attr.target_fd = fd; in bpf_program_cgroup_attach()
291 attr.target_fd = fd; in bpf_program_cgroup_detach()
Dmount-util.c41 int target_fd, in mount_fd() argument
46 if (mount(source, FORMAT_PROC_FD_PATH(target_fd), filesystemtype, mountflags, data) < 0) { in mount_fd()
/systemd-251/src/shared/linux/
Dbpf.h1356 __u32 target_fd; /* container object to attach to */ member
1408 __u32 target_fd; /* container object to query */ member
1448 __u32 target_fd; /* object to attach to */ member
/systemd-251/src/core/
Dbpf-firewall.c871 attr.target_fd = -1; in bpf_firewall_supported()
899 attr.target_fd = -1; in bpf_firewall_supported()
/systemd-251/src/partition/
Drepart.c2744 int target_fd; in context_copy_blocks() local
2778 target_fd = encrypted_dev_fd; in context_copy_blocks()
2783 target_fd = whole_fd; in context_copy_blocks()
2789 … r = copy_bytes_full(p->copy_blocks_fd, target_fd, p->copy_blocks_size, 0, NULL, NULL, NULL, NULL); in context_copy_blocks()
2793 if (fsync(target_fd) < 0) in context_copy_blocks()