Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 73) sorted by relevance

123

/system/vold/
DBenchmarkGen.h159 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 …]
DLoop.cpp59 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 …]
DDevmapper.cpp58 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()
DAutoCloseFD.h31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {}
Dmain.cpp180 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()
Dcryptfs.cpp258 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/
Dsched_policy.cpp161 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()
Dqtaguid.c50 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()
Dklog.cpp41 return TEMP_FAILURE_RETRY(open(kmsg_device, O_WRONLY | O_CLOEXEC)); in __open_klog()
Dfs.c83 : 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/
Dprocess.h62 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/
Dfile.cpp71 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/
Dworkload.cpp62 if (pipe2(start_signal_pipe, O_CLOEXEC) != 0) { in CreateNewProcess()
68 if (pipe2(exec_child_pipe, O_CLOEXEC) != 0) { in CreateNewProcess()
/system/core/lmkd/
Dlmkd.c221 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/
Dwatchdogd.cpp41 int fd = open(DEV_NAME, O_RDWR|O_CLOEXEC); in watchdogd_main()
Dkeychords.cpp100 keychord_fd = TEMP_FAILURE_RETRY(open("/dev/keychord", O_RDWR | O_CLOEXEC)); in keychord_init()
/system/core/libmemunreachable/
DScopedPipe.h27 int ret = pipe2(pipefd_, O_CLOEXEC);
/system/core/libutils/include/utils/
DCompat.h47 #define O_CLOEXEC O_NOINHERIT macro
/system/extras/squashfs_utils/
Dsquashfs_utils.c66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC)); in squashfs_parse_sb()
/system/extras/ext4_utils/
Dext4_crypt.cpp134 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/
Dtun_interface.cpp67 mFd = open(TUN_DEV, O_RDWR | O_NONBLOCK | O_CLOEXEC); in init()
/system/update_engine/payload_consumer/
Dmtd_file_descriptor.cc115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); in Open()
186 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode)); in Open()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp305 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/
Dfile_sync_service.cpp208 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/
Dprocess.cpp48 int status_fd = openat(fd, "status", O_RDONLY | O_CLOEXEC); in GetProcessInfoFromProcPidFd()

123