/system/vold/ |
D | BenchmarkGen.h | 159 t3433f18 = TEMP_FAILURE_RETRY(open("file3", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun() 161 t3433f18 = TEMP_FAILURE_RETRY(open("file4", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun() 163 t3433f18 = TEMP_FAILURE_RETRY(open("file5", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 169 t3433f18 = TEMP_FAILURE_RETRY(open("file6", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 175 t3433f18 = TEMP_FAILURE_RETRY(open("file7", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 181 t3433f18 = TEMP_FAILURE_RETRY(open("file8", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 187 t3433f18 = TEMP_FAILURE_RETRY(open("file9", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 193 t3433f18 = TEMP_FAILURE_RETRY(open("file10", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun() 218 t3450f22 = TEMP_FAILURE_RETRY(open("file13", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun() 220 t3450f22 = TEMP_FAILURE_RETRY(open("file14", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun() [all …]
|
D | Loop.cpp | 59 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in dumpState() 103 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in lookupActive() 179 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in create() 207 if ((file_fd = open(loopFile, O_RDWR | O_CLOEXEC)) < 0) { in create() 240 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in create() 254 unique_fd target_fd(open(target.c_str(), O_RDWR | O_CLOEXEC)); in create() 259 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC)); in create() 276 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 298 unique_fd fd(open(file, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0600)); in createImageFile() 316 if ((fd = open(file, O_RDWR | O_CLOEXEC)) < 0) { in resizeImageFile() [all …]
|
D | Devmapper.cpp | 58 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { in dumpState() 141 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { in lookupActive() 175 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { in create() 272 if ((fd = open("/dev/device-mapper", O_RDWR | O_CLOEXEC)) < 0) { in destroy()
|
D | AutoCloseFD.h | 31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {}
|
D | main.cpp | 180 fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC); in do_coldboot() 195 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in do_coldboot()
|
D | cryptfs.cpp | 258 if ((fd = open(dev, O_RDONLY|O_CLOEXEC)) < 0) { in get_fs_size() 301 if ( (fd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_info() 375 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { in put_crypt_ftr_and_key() 521 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_and_key() 646 fd = open(fname, O_RDONLY|O_CLOEXEC); in load_persistent_data() 725 fd = open(fname, O_RDWR|O_CLOEXEC); in save_persistent_data() 912 if ((fd = open("/dev/device-mapper", O_RDWR|O_CLOEXEC)) < 0 ) { in create_crypto_blk_dev() 978 if ((fd = open("/dev/device-mapper", O_RDWR|O_CLOEXEC)) < 0 ) { in delete_crypto_blk_dev() 1249 fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC); in create_encrypted_random_key() 1709 int fd = open(real_blkdev, O_RDONLY|O_CLOEXEC); in cryptfs_setup_ext_volume() [all …]
|
/system/core/libcutils/ |
D | sched_policy.cpp | 161 fg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 163 bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 165 system_bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 167 ta_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 171 ta_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 173 fg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 175 bg_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 346 int fd = open(buf, O_WRONLY | O_CLOEXEC); in set_timerslack_ns() 373 int fd = open(statfile, O_RDONLY | O_CLOEXEC); in set_sched_policy()
|
D | qtaguid.c | 50 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY | O_CLOEXEC)); in qtaguid_resTrack() 63 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY | O_CLOEXEC)); in write_ctrl() 86 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY | O_CLOEXEC)); in write_param()
|
D | klog.cpp | 41 return TEMP_FAILURE_RETRY(open(kmsg_device, O_WRONLY | O_CLOEXEC)); in __open_klog()
|
D | fs.c | 83 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY, 0644)); in fs_prepare_path_impl() 252 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) { in fs_mkdirs()
|
/system/core/libprocinfo/include/procinfo/ |
D | process.h | 62 int task_fd = openat(fd, "task", O_DIRECTORY | O_RDONLY | O_CLOEXEC); 94 android::base::unique_fd fd(open(task_path, O_DIRECTORY | O_RDONLY | O_CLOEXEC));
|
/system/core/base/ |
D | file.cpp | 71 int flags = O_RDONLY | O_CLOEXEC | O_BINARY | (follow_symlinks ? 0 : O_NOFOLLOW); in ReadFileToString() 107 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile() 136 int flags = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY | in WriteStringToFile()
|
/system/extras/simpleperf/ |
D | workload.cpp | 62 if (pipe2(start_signal_pipe, O_CLOEXEC) != 0) { in CreateNewProcess() 68 if (pipe2(exec_child_pipe, O_CLOEXEC) != 0) { in CreateNewProcess()
|
/system/core/lmkd/ |
D | lmkd.c | 221 int fd = open(path, O_WRONLY | O_CLOEXEC); in writefilestring() 474 fd = open(ZONEINFO_PATH, O_RDONLY | O_CLOEXEC); in zoneinfo_parse() 505 fd = open(path, O_RDONLY | O_CLOEXEC); in proc_get_size() 528 fd = open(path, O_RDONLY | O_CLOEXEC); in proc_get_name() 673 mpfd = open(MEMCG_SYSFS_PATH "memory.pressure_level", O_RDONLY | O_CLOEXEC); in init_mp() 679 evctlfd = open(MEMCG_SYSFS_PATH "cgroup.event_control", O_WRONLY | O_CLOEXEC); in init_mp()
|
/system/core/init/ |
D | watchdogd.cpp | 41 int fd = open(DEV_NAME, O_RDWR|O_CLOEXEC); in watchdogd_main()
|
D | keychords.cpp | 100 keychord_fd = TEMP_FAILURE_RETRY(open("/dev/keychord", O_RDWR | O_CLOEXEC)); in keychord_init()
|
/system/core/libmemunreachable/ |
D | ScopedPipe.h | 27 int ret = pipe2(pipefd_, O_CLOEXEC);
|
/system/core/libutils/include/utils/ |
D | Compat.h | 47 #define O_CLOEXEC O_NOINHERIT macro
|
/system/extras/squashfs_utils/ |
D | squashfs_utils.c | 66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC)); in squashfs_parse_sb()
|
/system/extras/ext4_utils/ |
D | ext4_crypt.cpp | 134 int fd = open(directory, O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in e4crypt_policy_set() 168 int fd = open(directory, O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in e4crypt_policy_get()
|
/system/netd/tests/ |
D | tun_interface.cpp | 67 mFd = open(TUN_DEV, O_RDWR | O_NONBLOCK | O_CLOEXEC); in init()
|
/system/update_engine/payload_consumer/ |
D | mtd_file_descriptor.cc | 115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); in Open() 186 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); in Open()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 305 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC)); in check_verity_restart() 477 fd = TEMP_FAILURE_RETRY(open(fname, O_WRONLY | O_SYNC | O_CLOEXEC)); in write_verity_state() 506 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC)); in read_verity_state() 552 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC))); in read_partition() 609 fd = TEMP_FAILURE_RETRY(open(fstab->verity_loc, O_RDWR | O_SYNC | O_CLOEXEC)); in compare_last_signature()
|
/system/core/adb/ |
D | file_sync_service.cpp | 208 int fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() 214 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); in handle_send_file() 217 fd = adb_open_mode(path, O_WRONLY | O_CLOEXEC, mode); in handle_send_file() 410 int fd = adb_open(path, O_RDONLY | O_CLOEXEC); in do_recv()
|
/system/core/libprocinfo/ |
D | process.cpp | 48 int status_fd = openat(fd, "status", O_RDONLY | O_CLOEXEC); in GetProcessInfoFromProcPidFd()
|