Searched refs:open_fd (Results 1 – 3 of 3) sorted by relevance
/systemd-251/src/import/ |
D | export.c | 65 _cleanup_close_ int open_fd = -1; in export_tar() local 86 open_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666); in export_tar() 87 if (open_fd < 0) in export_tar() 90 fd = open_fd; in export_tar() 141 _cleanup_close_ int open_fd = -1; in export_raw() local 162 open_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666); in export_raw() 163 if (open_fd < 0) in export_raw() 166 fd = open_fd; in export_raw()
|
D | import.c | 85 _cleanup_close_ int open_fd = -1; in open_source() local 92 open_fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY); in open_source() 93 if (open_fd < 0) in open_source() 96 retval = open_fd; in open_source() 115 *ret_open_fd = TAKE_FD(open_fd); in open_source() 134 _cleanup_close_ int open_fd = -1; in import_tar() local 160 fd = open_source(path, normalized, &open_fd); in import_tar() 206 _cleanup_close_ int open_fd = -1; in import_raw() local 232 fd = open_source(path, normalized, &open_fd); in import_raw()
|
D | import-fs.c | 105 _cleanup_close_ int open_fd = -1; in import_fs() local 159 open_fd = open(path, O_DIRECTORY|O_RDONLY|O_CLOEXEC); in import_fs() 160 if (open_fd < 0) in import_fs() 163 fd = open_fd; in import_fs()
|