/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() 175 unique_fd fd(open(file, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0600)); in createImageFile() 193 if ((fd = open(file, O_RDWR | O_CLOEXEC)) < 0) { in resizeImageFile()
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | main.cpp | 67 unique_fd wakeupCountFd{TEMP_FAILURE_RETRY(open(kSysPowerWakeupCount, O_CLOEXEC | O_RDWR))}; in main() 71 unique_fd stateFd{TEMP_FAILURE_RETRY(open(kSysPowerState, O_CLOEXEC | O_RDWR))}; in main() 76 TEMP_FAILURE_RETRY(open(kSysClassWakeup, O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in main() 81 TEMP_FAILURE_RETRY(open(kSysPowerSuspendStats, O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in main() 86 TEMP_FAILURE_RETRY(open(kSysKernelWakeupReasons, O_CLOEXEC | O_RDONLY))}; in main() 90 unique_fd suspendTimeFd{TEMP_FAILURE_RETRY(open(kSysKernelSuspendTime, O_CLOEXEC | O_RDONLY))}; in main()
|
/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()
|
/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/apex/apexd/ |
D | apexd_loop.cpp | 95 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead() 115 TEMP_FAILURE_RETRY(open("/dev/loop-control", O_RDWR | O_CLOEXEC))); in PreAllocateLoopDevices() 190 unique_fd target_fd(open(target.c_str(), O_RDONLY | O_CLOEXEC | O_DIRECT)); in ConfigureLoopDevice() 202 target_fd.reset(open(target.c_str(), O_RDONLY | O_CLOEXEC)); in ConfigureLoopDevice() 288 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in WaitForDevice() 307 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in CreateLoopDevice() 340 unique_fd fd(open(path.c_str(), O_RDWR | O_CLOEXEC)); in DestroyLoopDevice()
|
D | apexd_verity.cpp | 64 TEMP_FAILURE_RETRY(open(apex.GetPath().c_str(), O_RDONLY | O_CLOEXEC))); in GenerateHashTree() 114 hashtree_file.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0600))); in GenerateHashTree() 124 TEMP_FAILURE_RETRY(open(hashtree_file.c_str(), O_RDONLY | O_CLOEXEC))); in CalculateRootDigest()
|
/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/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once() 35 atrace_marker_fd = open("/sys/kernel/debug/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/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/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/libprocinfo/include/procinfo/ |
D | process.h | 76 int task_fd = openat(fd, "task", O_DIRECTORY | O_RDONLY | O_CLOEXEC); 114 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/unwinding/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/libprocinfo/ |
D | process.cpp | 68 int status_fd = openat(fd, "status", O_RDONLY | O_CLOEXEC); in GetProcessInfoFromProcPidFd() 133 unique_fd stat_fd(openat(fd, "stat", O_RDONLY | O_CLOEXEC)); in GetProcessInfoFromProcPidFd()
|
/system/core/debuggerd/ |
D | pbtombstone.cpp | 44 unique_fd fd(open(argv[1], O_RDONLY | O_CLOEXEC)); in main()
|
/system/security/ondevice-signing/ |
D | VerityUtils.cpp | 76 unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC))); in createDigest() 164 unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC))); in enableFsVerity() 204 unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC))); in isFileInVerity() 260 int fd = open(path.c_str(), O_RDONLY | O_CLOEXEC); in addCertToFsVerityKeyring()
|
/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/core/watchdogd/ |
D | watchdogd.cpp | 39 int fd = open(DEV_NAME, O_RDWR | O_CLOEXEC); in main()
|
/system/memory/libmemunreachable/ |
D | ScopedPipe.h | 29 int ret = pipe2(pipefd_, O_CLOEXEC);
|
/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()
|