Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 59) sorted by relevance

123

/art/openjdkjvm/
DOpenjdkJvm.cc84 int fd = TEMP_FAILURE_RETRY(open(fname, flags & ~JVM_O_DELETE, mode)); in JVM_Open() local
98 JNIEXPORT jint JVM_Close(jint fd) { in JVM_Close()
104 JNIEXPORT jint JVM_Read(jint fd, char* buf, jint nbytes) { in JVM_Read()
109 JNIEXPORT jint JVM_Write(jint fd, char* buf, jint nbytes) { in JVM_Write()
114 JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) { in JVM_Lseek()
199 JNIEXPORT jint JVM_Sync(jint fd) { in JVM_Sync()
263 JNIEXPORT jint JVM_SetSockOpt(jint fd, int level, int optname, in JVM_SetSockOpt()
268 JNIEXPORT jint JVM_SocketShutdown(jint fd, jint howto) { in JVM_SocketShutdown()
272 JNIEXPORT jint JVM_GetSockOpt(jint fd, int level, int optname, char* optval, in JVM_GetSockOpt()
280 JNIEXPORT jint JVM_GetSockName(jint fd, struct sockaddr* addr, int* addrlen) { in JVM_GetSockName()
[all …]
/art/libartbase/base/
Dfile_magic.cc34 File fd(filename, O_RDONLY, /* check_usage= */ false); in OpenAndReadMagic() local
46 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg) { in ReadMagicAndReset()
Dmemfd_test.cc23 int fd = art::memfd_create("memfd_create_test", 0); in TEST() local
Dzip_archive.cc213 static void SetCloseOnExec(int fd) { in SetCloseOnExec()
248 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd()
252 ZipArchive* ZipArchive::OpenFromOwnedFd(int fd, const char* filename, std::string* error_msg) { in OpenFromOwnedFd()
274 ZipArchive* ZipArchive::OpenFromFdInternal(int fd, in OpenFromFdInternal()
Dsocket_peer_is_trusted.cc30 bool SocketPeerIsTrusted(int fd) { in SocketPeerIsTrusted()
Dmem_map_unix.cc27 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap()
Dscoped_flock.h71 LockedFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) in LockedFile()
Dzip_archive_test.cc53 int fd = open(tmp.GetFilename().c_str(), O_RDONLY | O_CLOEXEC); in TEST_F() local
Dscoped_flock.cc103 ScopedFlock LockedFile::DupOf(const int fd, const std::string& path, in DupOf()
Dmemfd.cc93 android::base::unique_fd fd(art::memfd_create("test_android_memfd", MFD_ALLOW_SEALING)); in IsSealFutureWriteSupportedInternal() local
Dmem_map_windows.cc50 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap()
/art/runtime/jit/
Djit_memory_region_test.cc62 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in BasicTest() local
118 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in TestUnmapWritableAfterFork() local
215 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in TestMadviseDontFork() local
312 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in TestFromSharedToPrivate() local
505 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in TestVmMayWriteBefore() local
532 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(page_size, &error_msg)); in TestVmMayWriteAfter() local
Djit_memory_region.cc513 int fd = art::memfd_create(kRegionName, MFD_ALLOW_SEALING); in CreateZygoteMemory() local
533 int fd; in CreateZygoteMemory() local
545 bool JitMemoryRegion::ProtectZygoteMemory(int fd, std::string* error_msg) { in ProtectZygoteMemory()
573 int fd = art::memfd_create(kRegionName, 0); in CreateZygoteMemory() local
589 bool JitMemoryRegion::ProtectZygoteMemory([[maybe_unused]] int fd, in ProtectZygoteMemory()
/art/libartbase/base/unix_file/
Dfd_file.cc74 static ssize_t pread(int fd, void* data, size_t byte_count, off64_t offset) { in pread()
103 static ssize_t pwrite(int fd, const void* buf, size_t count, off64_t offset) { in pwrite()
132 static int fsync(int fd) { in fsync()
149 FdFile::FdFile(int fd, bool check_usage) in FdFile()
152 FdFile::FdFile(int fd, const std::string& path, bool check_usage) in FdFile()
155 FdFile::FdFile(int fd, const std::string& path, bool check_usage, in FdFile()
247 void FdFile::Reset(int fd, bool check_usage) { in Reset()
424 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { in ReadIgnoreOffset()
430 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric()
793 bool FdFile::IsOpenFd(int fd) { in IsOpenFd()
/art/libarttools/
Dart_exec.cc116 int fd; in ParseOptions() local
165 int fd; in CloseFds() local
174 for (int fd : open_fds) { in CloseFds() local
/art/libnativebridge/tests/
DCodeCacheStatFail_test.cpp29 int fd = creat(codeCache(), O_RDWR); in TEST_F() local
/art/libprofile/profile/
Dprofile_helpers.h29 inline bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { in WriteBuffer()
Dprofile_boot_info.cc62 bool ProfileBootInfo::Load(int fd, const std::vector<const DexFile*>& dex_files) { in Load()
/art/dt_fd_forward/
Ddt_fd_forward.cc108 static void SendListenMessage(const android::base::unique_fd& fd) { in SendListenMessage()
113 static int DupCloexec(int fd) { in DupCloexec()
133 static void SendListenEndMessage(const android::base::unique_fd& fd) { in SendListenEndMessage()
249 explicit ScopedEventFdLock(const android::base::unique_fd& fd) : fd_(fd), data_(0) { in ScopedEventFdLock()
288 static void SendAcceptMessage(int fd) { in SendAcceptMessage()
292 static void SendHandshakeCompleteMessage(int fd) { in SendHandshakeCompleteMessage()
420 void SendClosingMessage(int fd) { in SendClosingMessage()
/art/tools/
Dcompile-jar.py154 def fdfile(fd): argument
/art/dex2oat/utils/
Dswap_space_test.cc37 int fd = scratch.GetFd(); in SwapTest() local
/art/runtime/
Dmonitor_android.cc49 int fd = open("/proc/self/cmdline", O_RDONLY | O_CLOEXEC); in LogContentionEvent() local
/art/test/
Dstandalone_test_lib_check.cc98 android::base::unique_fd fd(open(filename.c_str(), O_RDONLY)); in GetDynamicLibDeps() local
/art/libartpalette/system/
Dpalette_fake.cc76 int* fd) { in PaletteAshmemCreateRegion()
81 palette_status_t PaletteAshmemSetProtRegion([[maybe_unused]] int fd, [[maybe_unused]] int prot) { in PaletteAshmemSetProtRegion()
/art/libartservice/service/javatests/com/android/server/art/
DArtManagerLocalTest.java893 ParcelFileDescriptor fd = in testSnapshotAppProfile() local
942 ParcelFileDescriptor fd = in testSnapshotAppProfileFromDm() local
1018 ParcelFileDescriptor fd = in testSnapshotAppProfileEmpty() local
1056 ParcelFileDescriptor fd = mArtManagerLocal.dumpAppProfile( in testDumpAppProfile() local
1068 ParcelFileDescriptor fd = mArtManagerLocal.dumpAppProfile( in testDumpAppProfileDumpClassesAndMethods() local

123