/system/vold/ |
D | BenchmarkGen.h | 161 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 …]
|
D | Loop.cpp | 55 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()
|
D | EncryptInplace.cpp | 269 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/ |
D | apexd_loop.cpp | 80 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()
|
D | apexd_verity.cpp | 63 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/ |
D | main.cpp | 51 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()
|
D | SystemSuspend.cpp | 102 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/ |
D | unique_fd_test.cpp | 27 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/ |
D | service_utils.cpp | 50 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()
|
D | persistent_properties.cpp | 73 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()
|
D | security.cpp | 53 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()
|
D | firmware_handler.cpp | 193 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/ |
D | loop_control.cpp | 36 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/ |
D | pageacct.cpp | 47 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/ |
D | trace-dev.cpp | 33 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()
|
D | klog.cpp | 42 return TEMP_FAILURE_RETRY(open(kmsg_device, O_WRONLY | O_CLOEXEC)); in __open_klog()
|
/system/libbase/include/android-base/ |
D | file.h | 33 #if defined(_WIN32) && !defined(O_CLOEXEC) 35 #define O_CLOEXEC O_NOINHERIT macro
|
D | unique_fd.h | 185 int flags = O_CLOEXEC) { 193 if (flags & ~(O_CLOEXEC | O_NONBLOCK)) { 200 if (flags & O_CLOEXEC) {
|
/system/core/libqtaguid/ |
D | qtaguid.c | 48 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/ |
D | process.h | 72 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/ |
D | images.cpp | 62 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/ |
D | GenGnuDebugdata.cpp | 91 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/ |
D | autosuspend_wakeup_count.cpp | 120 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/ |
D | BufferAllocator.cpp | 60 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/ |
D | watchdogd.cpp | 39 int fd = open(DEV_NAME, O_RDWR | O_CLOEXEC); in main()
|