Home
last modified time | relevance | path

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

1234

/frameworks/native/libs/binder/
DFdUtils.h41 inline bool Pipe(unique_fd* read, unique_fd* write, int flags = O_CLOEXEC) {
45 if (flags & ~(O_CLOEXEC | O_NONBLOCK)) {
52 if (flags & O_CLOEXEC) {
/frameworks/base/core/jni/
Dcom_android_internal_security_VerityUtils.cpp64 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in enableFsverity()
93 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in statxForFsverity()
122 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in measureFsverity()
Dcom_android_internal_content_F2fsUtils.cpp50 android::base::unique_fd fd(open(filePath.c_str(), O_RDONLY | O_CLOEXEC, 0)); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks()
Dandroid_os_storage_StorageManager.cpp49 TEMP_FAILURE_RETRY(open(utf_chars_path.c_str(), O_RDONLY | O_CLOEXEC))); in android_os_storage_StorageManager_setQuotaProjectId()
Dcom_android_internal_content_FileSystemUtils.cpp96 android::base::unique_fd fd(open(filePath, O_RDWR | O_CLOEXEC)); in punchHoles()
259 android::base::unique_fd fd(open(filePath, O_RDWR | O_CLOEXEC)); in punchHolesInZip()
Dandroid_ddm_DdmHandleNativeHeap.cpp55 int fd = open(path, O_RDONLY | O_CLOEXEC); in ReadFile()
Dfd_utils.cpp384 int dup_flags = (fd_flags & FD_CLOEXEC) ? O_CLOEXEC : 0; in ReopenOrDetach()
465 const int dev_null_fd = open("/dev/null", O_RDWR | O_CLOEXEC); in DetachSocket()
470 if (dup3(dev_null_fd, fd, O_CLOEXEC) == -1) { in DetachSocket()
Dandroid_text_Hyphenator.cpp41 const int fd = open(hyFilePath.c_str(), O_RDONLY | O_CLOEXEC); in mmapPatternFile()
Dandroid_util_Process.cpp286 fd = open(proc_path, O_RDONLY | O_CLOEXEC); in android_os_Process_setProcessGroup()
602 int fd = open(text, O_WRONLY | O_CLOEXEC); in android_os_Process_setSwappiness()
743 int fd = open(file.c_str(), O_RDONLY | O_CLOEXEC); in android_os_Process_readProcLines()
1056 ::android::base::unique_fd fd(open(file8, O_RDONLY | O_CLOEXEC)); in android_os_Process_readProcFile()
1279 int fd = open(path, O_RDONLY | O_CLOEXEC); in android_os_Process_getPidsForCommands()
/frameworks/libs/binary_translation/kernel_api/riscv64/
Dopen_emulation.cc67 static_assert(O_CLOEXEC == 02000000);
77 O_NOFOLLOW | O_CLOEXEC | O_DIRECT | __O_SYNC | O_PATH;
/frameworks/base/libs/androidfw/
DFileStream.cpp32 #define O_CLOEXEC O_NOINHERIT macro
42 int mode = O_RDONLY | O_CLOEXEC | O_BINARY; in FileInputStream()
133 int mode = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY; in FileOutputStream()
/frameworks/base/cmds/incidentd/tests/
DProtoFileReader_test.cpp62 unique_fd fd(open(testFile.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR)); in TEST()
74 int fd = open(testFile.c_str(), O_RDONLY | O_CLOEXEC); in TEST()
DFdBuffer_test.cpp238 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
272 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
/frameworks/libs/binary_translation/runtime_primitives/
Dprofiler_interface.cc70 int fd = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR); in ProfilerOpenLogFile()
/frameworks/native/libs/binder/tests/
DbinderRecordReplayTest.cpp125 O_RDWR | O_CREAT | O_CLOEXEC | O_TRUNC, 0666)); in replayFuzzService()
178 O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in recordReplay()
378 unique_fd saved(open("/data/local/tmp/test_fd", O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in TEST_F()
383 unique_fd changed(open("/data/local/tmp/test_des", O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in TEST_F()
DbinderDriverInterfaceTest.cpp37 m_binderFd = open(BINDER_DEV_NAME, O_RDWR | O_NONBLOCK | O_CLOEXEC); in SetUp()
153 int binderFd = open(BINDER_DEV_NAME, O_RDWR | O_NONBLOCK | O_CLOEXEC); in TEST_F()
/frameworks/av/camera/tests/fuzzer/
Dcamera_vendorTagDescriptor_fuzzer.cpp139 int32_t fd = open("/dev/null", O_CLOEXEC | O_RDWR | O_CREAT); in invokeVendorTagDescriptor()
191 int32_t fd = open("/dev/null", O_CLOEXEC | O_RDWR | O_CREAT); in invokeVendorTagDescriptorCache()
/frameworks/native/libs/binder/tests/parcel_fuzzer/binder2corpus/
Dbinder2corpus.cpp53 constexpr int openFlags = O_WRONLY | O_CREAT | O_BINARY | O_CLOEXEC; in generateCorpus()
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Drandom_fd.cpp52 int flags = O_CLOEXEC; in getRandomFds()
/frameworks/libs/binary_translation/base/
Dtracing.cc73 int fd = open(trace_filename.c_str(), O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, S_IWUSR); in TraceToFile()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp267 return Open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in OpenForWrite()
272 return Open(path, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); in OpenForRead()
417 … TEMP_FAILURE_RETRY(open(abs_path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_NONBLOCK))); in GetDumpFds()
936 TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in AddZipEntry()
1050 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpIncidentReport()
1073 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpNetstatsProto()
1114 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpVisibleWindowViews()
1449 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpHals()
2277 android::base::unique_fd fd(mkostemp(file_name_buf.get(), O_APPEND | O_CLOEXEC)); in DumpTraces()
2637 open(paths[i].c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpstateBoard()
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java22 import static android.system.OsConstants.O_CLOEXEC;
353 final int flags = FileUtils.translateModePfdToPosix(mode) | ifAtLeastQ(O_CLOEXEC); in openInternal()
538 final FileDescriptor[] fds = Os.pipe2(ifAtLeastQ(O_CLOEXEC)); in createPipe()
560 final FileDescriptor[] fds = Os.pipe2(ifAtLeastQ(O_CLOEXEC)); in createReliablePipe()
/frameworks/base/cmds/incidentd/src/
DWorkDirectory.cpp78 int fd = open(filename.c_str(), O_RDONLY | O_CLOEXEC); in read_proto()
97 int fd = open(filename.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in write_proto()
382 mDataFd = open(mDataFileName.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in startWritingDataFile()
399 int dataFd = open(mDataFileName.c_str(), O_RDONLY | O_CLOEXEC); in startFilteringData()
/frameworks/native/cmds/installd/
Dutils.cpp434 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC))); in set_quota_project_id()
593 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in _delete_dir_contents()
808 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in delete_dir_contents_fd()
858 int fsfd = openat(sdfd, name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in _copy_dir_files()
859 int fdfd = openat(ddfd, name, O_WRONLY | O_NOFOLLOW | O_CLOEXEC | O_CREAT, 0600); in _copy_dir_files()
1367 O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in collect_profiles()
/frameworks/opt/net/wifi/libwifi_hal/
Dwifi_hal_common.cpp64 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in insmod()

1234