Searched refs:O_CLOEXEC (Results 1 - 25 of 55) sorted by relevance

123

/system/vold/
H A DBenchmarkGen.h159 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 DLoop.cpp52 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 DAutoCloseFD.h31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {}
H A DDevmapper.cpp58 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 Dcryptfs.c504 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 Dklog.c43 klog_fd = open("/dev/kmsg", O_WRONLY | O_CLOEXEC);
50 klog_fd = open(name, O_WRONLY | O_CLOEXEC);
H A Dsched_policy.c117 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 Dfs.c82 : 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 DCompat.h43 #define O_CLOEXEC O_NOINHERIT macro
/system/core/init/
H A Dwatchdogd.cpp43 int fd = open(DEV_NAME, O_RDWR|O_CLOEXEC);
H A Dkeychords.cpp99 keychord_fd = TEMP_FAILURE_RETRY(open("/dev/keychord", O_RDWR | O_CLOEXEC));
H A Dinit.cpp202 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 Dutil.cpp179 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 DScopedPipe.h27 int ret = pipe2(pipefd_, O_CLOEXEC);
/system/core/base/
H A Dfile.cpp52 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 Dsquashfs_utils.c66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC));
/system/extras/ext4_utils/
H A Dext4_crypt.cpp110 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 Dworkload.cpp55 if (pipe2(start_signal_pipe, O_CLOEXEC) != 0) {
61 if (pipe2(exec_child_pipe, O_CLOEXEC) != 0) {
/system/core/lmkd/
H A Dlmkd.c220 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 Dadb_trace.cpp67 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0640);
H A Dfile_sync_service.cpp156 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 Dremount_service.cpp78 int fd = unix_open(dev.c_str(), O_RDONLY | O_CLOEXEC);
H A Dframebuffer_service.cpp67 if (pipe2(fds, O_CLOEXEC) < 0) goto pipefail;
/system/netd/server/
H A Dmain.cpp59 const int PID_FILE_FLAGS = O_CREAT | O_TRUNC | O_WRONLY | O_NOFOLLOW | O_CLOEXEC;
/system/update_engine/payload_consumer/
H A Dmtd_file_descriptor.cc115 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode));
186 EintrSafeFileDescriptor::Open(path, flags | O_CLOEXEC, mode));

Completed in 525 milliseconds

123