Home
last modified time | relevance | path

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

12345678

/system/vold/
DBenchmarkGen.h161 t3433f18 = TEMP_FAILURE_RETRY(open("file3", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun()
163 t3433f18 = TEMP_FAILURE_RETRY(open("file4", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun()
165 t3433f18 = TEMP_FAILURE_RETRY(open("file5", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
171 t3433f18 = TEMP_FAILURE_RETRY(open("file6", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
177 t3433f18 = TEMP_FAILURE_RETRY(open("file7", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
183 t3433f18 = TEMP_FAILURE_RETRY(open("file8", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
189 t3433f18 = TEMP_FAILURE_RETRY(open("file9", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
195 t3433f18 = TEMP_FAILURE_RETRY(open("file10", O_RDONLY|O_LARGEFILE|O_CLOEXEC)); in BenchmarkRun()
220 t3450f22 = TEMP_FAILURE_RETRY(open("file13", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun()
222 t3450f22 = TEMP_FAILURE_RETRY(open("file14", O_RDONLY|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)); in BenchmarkRun()
[all …]
DLoop.cpp55 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in create()
71 target_fd.reset(open(target.c_str(), O_RDWR | O_CLOEXEC)); in create()
85 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC)); in create()
110 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice()
143 unique_fd fd(open(path.c_str(), O_RDWR | O_CLOEXEC)); in destroyAll()
173 unique_fd fd(open(file, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0600)); in createImageFile()
191 if ((fd = open(file, O_RDWR | O_CLOEXEC)) < 0) { in resizeImageFile()
DEncryptInplace.cpp269 if ((data.realfd = open(real_blkdev, O_RDWR | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_ext4()
277 while ((data.cryptofd = open(crypto_blkdev, O_WRONLY | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_ext4()
406 if ((data.realfd = open64(real_blkdev, O_RDWR | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_f2fs()
410 if ((data.cryptofd = open64(crypto_blkdev, O_WRONLY | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_f2fs()
479 if ((realfd = open(real_blkdev, O_RDONLY | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_full()
484 if ((cryptofd = open(crypto_blkdev, O_WRONLY | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_full()
/system/apex/apexd/
Dapexd_loop.cpp80 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in configureReadAhead()
100 TEMP_FAILURE_RETRY(open("/dev/loop-control", O_RDWR | O_CLOEXEC))); in preAllocateLoopDevices()
132 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in createLoopDevice()
153 unique_fd target_fd(open(target.c_str(), O_RDONLY | O_CLOEXEC | O_DIRECT)); in createLoopDevice()
163 target_fd.reset(open(target.c_str(), O_RDONLY | O_CLOEXEC)); in createLoopDevice()
173 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in createLoopDevice()
237 unique_fd fd(open(path.c_str(), O_RDWR | O_CLOEXEC)); in DestroyLoopDevice()
Dapexd_verity.cpp63 TEMP_FAILURE_RETRY(open(apex.GetPath().c_str(), O_RDONLY | O_CLOEXEC))); in GenerateHashTree()
110 hashtree_file.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0600))); in GenerateHashTree()
120 TEMP_FAILURE_RETRY(open(hashtree_file.c_str(), O_RDONLY | O_CLOEXEC))); in CalculateRootDigest()
/system/hardware/interfaces/suspend/1.0/default/
Dmain.cpp51 unique_fd wakeupCountFd{TEMP_FAILURE_RETRY(open(kSysPowerWakeupCount, O_CLOEXEC | O_RDWR))}; in main()
55 unique_fd stateFd{TEMP_FAILURE_RETRY(open(kSysPowerState, O_CLOEXEC | O_RDWR))}; in main()
60 TEMP_FAILURE_RETRY(open(kSysClassWakeup, O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in main()
65 TEMP_FAILURE_RETRY(open(kSysPowerSuspendStats, O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in main()
DSystemSuspend.cpp102 mWakeLockFd.reset(TEMP_FAILURE_RETRY(open(kSysPowerWakeLock, O_CLOEXEC | O_RDWR))); in SystemSuspend()
106 mWakeUnlockFd.reset(TEMP_FAILURE_RETRY(open(kSysPowerWakeUnlock, O_CLOEXEC | O_RDWR))); in SystemSuspend()
260 openat(mSuspendStatsFd.get(), statName.c_str(), O_CLOEXEC | O_RDONLY))}; in getSuspendStats()
/system/libbase/tidy/
Dunique_fd_test.cpp27 android::base::unique_fd ufd(open("/dev/null", O_RDONLY | O_CLOEXEC)); in TEST()
29 ufd.reset(open("/dev/null", O_RDONLY | O_CLOEXEC)); in TEST()
/system/core/init/
Dservice_utils.cpp50 auto fd = unique_fd{open(path, O_RDONLY | O_CLOEXEC)}; in EnterNamespace()
128 auto fd = unique_fd{open("/dev/null", O_RDWR | O_CLOEXEC)}; in SetupStdio()
131 fd.reset(open("/dev/kmsg_debug", O_WRONLY | O_CLOEXEC)); in SetupStdio()
132 if (fd == -1) fd.reset(open("/dev/null", O_WRONLY | O_CLOEXEC)); in SetupStdio()
139 auto fd = unique_fd{open(console.c_str(), O_RDWR | O_CLOEXEC)}; in OpenConsole()
140 if (fd == -1) fd.reset(open("/dev/null", O_RDWR | O_CLOEXEC)); in OpenConsole()
184 unique_fd fd(TEMP_FAILURE_RETRY(open(name.c_str(), flags | O_NONBLOCK | O_CLOEXEC))); in Create()
Dpersistent_properties.cpp73 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in LoadLegacyPersistentProperties()
176 open(temp_filename.c_str(), O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0600))); in WritePersistentPropertyFile()
201 auto dir_fd = unique_fd{open(dir.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)}; in WritePersistentPropertyFile()
Dsecurity.cpp53 TEMP_FAILURE_RETRY(open("/dev/hw_random", O_RDONLY | O_NOFOLLOW | O_CLOEXEC))); in MixHwrngIntoLinuxRngAction()
64 TEMP_FAILURE_RETRY(open("/dev/urandom", O_WRONLY | O_NOFOLLOW | O_CLOEXEC))); in MixHwrngIntoLinuxRngAction()
Dfirmware_handler.cpp193 unique_fd loading_fd(open(loading.c_str(), O_WRONLY | O_CLOEXEC)); in ProcessFirmwareEvent()
199 unique_fd data_fd(open(data.c_str(), O_WRONLY | O_CLOEXEC)); in ProcessFirmwareEvent()
212 unique_fd fw_fd(open(file.c_str(), O_RDONLY | O_CLOEXEC)); in ProcessFirmwareEvent()
/system/core/fs_mgr/libdm/
Dloop_control.cpp36 control_fd_.reset(TEMP_FAILURE_RETRY(open(kLoopControlDevice, O_RDWR | O_CLOEXEC))); in LoopControl()
59 TEMP_FAILURE_RETRY(open(loopdev->c_str(), O_RDWR | O_CLOEXEC))); in Attach()
87 android::base::unique_fd loop_fd(TEMP_FAILURE_RETRY(open(loopdev.c_str(), O_RDWR | O_CLOEXEC))); in Detach()
147 owned_fd_.reset(open(path.c_str(), O_RDWR | O_CLOEXEC)); in LoopDevice()
/system/memory/libmeminfo/
Dpageacct.cpp47 unique_fd count_fd(TEMP_FAILURE_RETRY(open("/proc/kpagecount", O_RDONLY | O_CLOEXEC))); in InitPageAcct()
56 unique_fd flags_fd(TEMP_FAILURE_RETRY(open("/proc/kpageflags", O_RDONLY | O_CLOEXEC))); in InitPageAcct()
66 TEMP_FAILURE_RETRY(open("/sys/kernel/mm/page_idle/bitmap", O_RDWR | O_CLOEXEC))); in InitPageAcct()
/system/core/libcutils/
Dtrace-dev.cpp33 atrace_marker_fd = open("/sys/kernel/debug/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
35 atrace_marker_fd = open("/sys/kernel/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
Dklog.cpp42 return TEMP_FAILURE_RETRY(open(kmsg_device, O_WRONLY | O_CLOEXEC)); in __open_klog()
/system/libbase/include/android-base/
Dfile.h33 #if defined(_WIN32) && !defined(O_CLOEXEC)
35 #define O_CLOEXEC O_NOINHERIT macro
Dunique_fd.h185 int flags = O_CLOEXEC) {
193 if (flags & ~(O_CLOEXEC | O_NONBLOCK)) {
200 if (flags & O_CLOEXEC) {
/system/core/libqtaguid/
Dqtaguid.c48 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY | O_CLOEXEC)); in legacy_resTrack()
61 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY | O_CLOEXEC)); in write_ctrl()
/system/core/libprocinfo/include/procinfo/
Dprocess.h72 int task_fd = openat(fd, "task", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
110 android::base::unique_fd fd(open(task_path, O_DIRECTORY | O_RDONLY | O_CLOEXEC));
/system/core/fs_mgr/liblp/
Dimages.cpp62 unique_fd fd = GetControlFileOrOpen(file, O_RDONLY | O_CLOEXEC); in IsEmptySuperImage()
105 unique_fd fd = GetControlFileOrOpen(image_file.c_str(), O_RDONLY | O_CLOEXEC); in ReadFromImageFile()
127 unique_fd fd(open(file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY, 0644)); in WriteToImageFile()
187 unique_fd fd(open(file.c_str(), O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_BINARY, 0644)); in Export()
211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles()
446 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile()
/system/core/libunwindstack/tests/
DGenGnuDebugdata.cpp91 int elf32_fd = TEMP_FAILURE_RETRY(open("elf32", O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0644)); in main()
97 int elf64_fd = TEMP_FAILURE_RETRY(open("elf64", O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0644)); in main()
/system/core/libsuspend/
Dautosuspend_wakeup_count.cpp120 int fd = TEMP_FAILURE_RETRY(open(sys_power_state, O_CLOEXEC | O_RDWR)); in init_state_fd()
141 wakeup_count_fd = TEMP_FAILURE_RETRY(open(sys_power_wakeup_count, O_CLOEXEC | O_RDWR)); in autosuspend_init()
/system/memory/libdmabufheap/
DBufferAllocator.cpp60 fd = TEMP_FAILURE_RETRY(open(heap_path.c_str(), O_RDWR | O_CLOEXEC)); in OpenDmabufHeap()
101 ion_fd_.reset(TEMP_FAILURE_RETRY(open(kIonDevice, O_RDONLY| O_CLOEXEC))); in BufferAllocator()
200 .fd_flags = O_RDWR | O_CLOEXEC, // permissions for the memory to be allocated in DmabufAlloc()
/system/core/watchdogd/
Dwatchdogd.cpp39 int fd = open(DEV_NAME, O_RDWR | O_CLOEXEC); in main()

12345678