Searched refs:dfd (Results 1 - 5 of 5) sorted by relevance

/systemd/src/import/
H A Dtest-qcow2.c26 _cleanup_close_ int sfd = -1, dfd = -1; local
40 dfd = open(argv[2], O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666);
41 if (dfd < 0) {
46 r = qcow2_convert(sfd, dfd);
H A Dqcow2-util.c83 int dfd, uint64_t doffset,
90 r = btrfs_clone_range(sfd, soffset, dfd, doffset, cluster_size);
100 l = pwrite(dfd, buffer, cluster_size, doffset);
111 int dfd, uint64_t doffset,
155 l = pwrite(dfd, buffer2, cluster_size, doffset);
81 copy_cluster( int sfd, uint64_t soffset, int dfd, uint64_t doffset, uint64_t cluster_size, void *buffer) argument
109 decompress_cluster( int sfd, uint64_t soffset, int dfd, uint64_t doffset, uint64_t compressed_size, uint64_t cluster_size, void *buffer1, void *buffer2) argument
H A Dpull-raw.c269 _cleanup_close_ int dfd = -1; local
311 dfd = open(tp, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
312 if (dfd < 0)
319 r = chattr_fd(dfd, FS_NOCOW_FL, FS_NOCOW_FL);
323 r = copy_bytes(i->raw_job->disk_fd, dfd, (uint64_t) -1, true);
329 (void) copy_times(i->raw_job->disk_fd, dfd);
330 (void) copy_xattr(i->raw_job->disk_fd, dfd);
332 dfd = safe_close(dfd);
/systemd/src/core/
H A Dsmack-setup.c46 int dfd = -1; local
71 dfd = dirfd(dir);
72 assert(dfd >= 0);
81 fd = openat(dfd, entry->d_name, O_RDONLY|O_CLOEXEC);
132 int dfd = -1; local
150 dfd = dirfd(dir);
151 assert(dfd >= 0);
160 fd = openat(dfd, entry->d_name, O_RDONLY|O_CLOEXEC);
203 int dfd = -1; local
221 dfd
[all...]
/systemd/src/shared/
H A Dmachine-image.c151 int dfd,
166 if (fstatat(dfd, filename, &st, 0) < 0)
171 (faccessat(dfd, filename, W_OK, AT_EACCESS) < 0 && errno == EROFS);
183 fd = openat(dfd, filename, O_CLOEXEC|O_NOCTTY|O_DIRECTORY);
257 fd_getcrtime_at(dfd, filename, &crtime, 0);
149 image_make( const char *pretty, int dfd, const char *path, const char *filename, Image **ret) argument

Completed in 16 milliseconds