Searched refs:infd (Results 1 - 3 of 3) sorted by relevance
/systemd/src/test/ |
H A D | test-copy.c | 142 _cleanup_close_ int infd = -1; local 146 infd = open("/usr/lib/os-release", O_RDONLY|O_CLOEXEC); 147 if (infd < 0) 148 infd = open("/etc/os-release", O_RDONLY|O_CLOEXEC); 149 assert_se(infd >= 0); 153 r = copy_bytes(infd, pipefd[1], (uint64_t) -1, false); 159 assert_se(lseek(infd, 0, SEEK_SET) == 0); 160 r2 = read(infd, buf2, sizeof(buf2)); 172 r = copy_bytes(pipefd[1], infd, 1, false);
|
/systemd/src/basic/ |
H A D | btrfs-util.h | 64 int btrfs_reflink(int infd, int outfd); 65 int btrfs_clone_range(int infd, uint64_t in_offset, int ofd, uint64_t out_offset, uint64_t sz);
|
H A D | btrfs-util.c | 247 int btrfs_reflink(int infd, int outfd) { argument 251 assert(infd >= 0); 263 r = ioctl(outfd, BTRFS_IOC_CLONE, infd); 270 int btrfs_clone_range(int infd, uint64_t in_offset, int outfd, uint64_t out_offset, uint64_t sz) { argument 272 .src_fd = infd, 280 assert(infd >= 0);
|
Completed in 28 milliseconds