/system/vold/ |
H A D | BenchmarkGen.h | 159 t3433f18 = TEMP_FAILURE_RETRY(open("file3", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); 161 t3433f18 = TEMP_FAILURE_RETRY(open("file4", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); 163 t3433f18 = TEMP_FAILURE_RETRY(open("file5", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 169 t3433f18 = TEMP_FAILURE_RETRY(open("file6", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 175 t3433f18 = TEMP_FAILURE_RETRY(open("file7", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 181 t3433f18 = TEMP_FAILURE_RETRY(open("file8", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 187 t3433f18 = TEMP_FAILURE_RETRY(open("file9", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 193 t3433f18 = TEMP_FAILURE_RETRY(open("file10", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); 218 t3450f22 = TEMP_FAILURE_RETRY(open("file13", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); 220 t3450f22 = TEMP_FAILURE_RETRY(open("file14", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); [all...] |
H A D | Loop.cpp | 52 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { 96 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { 172 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { 200 if ((file_fd = open(loopFile, O_RDWR | O_CLOEXEC)) < 0) { 235 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); 276 if ((fd = open(file, O_RDWR | O_CLOEXEC)) < 0) { 305 if ((fd = open(loopDevice, O_RDONLY | O_CLOEXEC)) < 0) {
|
H A D | AutoCloseFD.h | 31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {}
|
H A D | Devmapper.cpp | 58 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { 141 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { 175 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { 272 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) {
|
H A D | cryptfs.c | 504 if ((fd = open(dev, O_RDONLY|O_CLOEXEC)) < 0) { 547 if ( (fd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { 621 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { 767 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { 892 fd = open(fname, O_RDONLY|O_CLOEXEC); 971 fd = open(fname, O_RDWR|O_CLOEXEC); 1167 if ((fd = open("/dev/device-mapper", O_RDWR|O_CLOEXEC)) < 0 ) { 1233 if ((fd = open("/dev/device-mapper", O_RDWR|O_CLOEXEC)) < 0 ) { 1500 fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC); 1976 int fd = open(real_blkdev, O_RDONLY|O_CLOEXEC); [all...] |
/system/core/libcutils/ |
H A D | klog.c | 43 klog_fd = open("/dev/kmsg", O_WRONLY | O_CLOEXEC); 50 klog_fd = open(name, O_WRONLY | O_CLOEXEC);
|
H A D | sched_policy.c | 117 fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); 123 bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); 135 fg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); 137 bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); 139 system_bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); 141 ta_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); 145 ta_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); 147 fg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); 149 bg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC);
|
H A D | fs.c | 82 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY)); 251 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) {
|
/system/core/include/utils/ |
H A D | Compat.h | 43 #define O_CLOEXEC O_NOINHERIT macro
|
/system/core/init/ |
H A D | watchdogd.cpp | 43 int fd = open(DEV_NAME, O_RDWR|O_CLOEXEC);
|
H A D | keychords.cpp | 99 keychord_fd = TEMP_FAILURE_RETRY(open("/dev/keychord", O_RDWR | O_CLOEXEC));
|
H A D | init.cpp | 202 open("/dev/hw_random", O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); 215 open("/dev/urandom", O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); 361 int fd = open(console_name.c_str(), O_RDWR | O_CLOEXEC); 366 fd = open("/dev/tty0", O_WRONLY | O_CLOEXEC); 633 close(open("/dev/.booting", O_WRONLY | O_CREAT | O_CLOEXEC, 0000));
|
H A D | util.cpp | 179 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY|O_NOFOLLOW|O_CLOEXEC)); 202 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY|O_CREAT|O_NOFOLLOW|O_CLOEXEC, 0600)); 232 fd = open("/proc/mtd", O_RDONLY|O_CLOEXEC);
|
/system/core/libmemunreachable/ |
H A D | ScopedPipe.h | 27 int ret = pipe2(pipefd_, O_CLOEXEC);
|
/system/core/base/ |
H A D | file.cpp | 52 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY)); 86 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; 113 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY;
|
/system/extras/squashfs_utils/ |
H A D | squashfs_utils.c | 66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC));
|
/system/extras/ext4_utils/ |
H A D | ext4_crypt.cpp | 110 int fd = open(directory, O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); 142 int fd = open(directory, O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
|
/system/extras/simpleperf/ |
H A D | workload.cpp | 55 if (pipe2(start_signal_pipe, O_CLOEXEC) != 0) { 61 if (pipe2(exec_child_pipe, O_CLOEXEC) != 0) {
|
/system/core/lmkd/ |
H A D | lmkd.c | 220 int fd = open(path, O_WRONLY | O_CLOEXEC); 477 fd = open(ZONEINFO_PATH, O_RDONLY | O_CLOEXEC); 508 fd = open(path, O_RDONLY | O_CLOEXEC); 531 fd = open(path, O_RDONLY | O_CLOEXEC); 676 mpfd = open(MEMCG_SYSFS_PATH "memory.pressure_level", O_RDONLY | O_CLOEXEC); 682 evctlfd = open(MEMCG_SYSFS_PATH "cgroup.event_control", O_WRONLY | O_CLOEXEC);
|
/system/core/adb/ |
H A D | adb_trace.cpp | 67 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0640);
|
H A D | file_sync_service.cpp | 156 int fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); 162 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); 165 fd = adb_open_mode(path, O_WRONLY | O_CLOEXEC, mode); 353 int fd = adb_open(path, O_RDONLY | O_CLOEXEC);
|
H A D | remount_service.cpp | 78 int fd = unix_open(dev.c_str(), O_RDONLY | O_CLOEXEC);
|
H A D | framebuffer_service.cpp | 67 if (pipe2(fds, O_CLOEXEC) < 0) goto pipefail;
|
/system/netd/server/ |
H A D | main.cpp | 59 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
|
/system/update_engine/payload_consumer/ |
H A D | mtd_file_descriptor.cc | 115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); 186 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode));
|