Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 30) sorted by relevance

12

/art/runtime/jdwp/
Djdwp_adb.cc309 int fd; in ProcessIncoming() local
314 fd = control_sock_; in ProcessIncoming()
315 if (fd >= 0) { in ProcessIncoming()
316 FD_SET(fd, &readfds); in ProcessIncoming()
317 if (maxfd < fd) { in ProcessIncoming()
318 maxfd = fd; in ProcessIncoming()
321 fd = clientSock; in ProcessIncoming()
322 if (fd >= 0) { in ProcessIncoming()
323 FD_SET(fd, &readfds); in ProcessIncoming()
324 if (maxfd < fd) { in ProcessIncoming()
[all …]
Djdwp_socket.cc197 static int SetNoDelay(int fd) { in SetNoDelay() argument
199 int cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); in SetNoDelay()
360 int fd; in ProcessIncoming() local
365 fd = listenSock; in ProcessIncoming()
366 if (fd >= 0) { in ProcessIncoming()
367 FD_SET(fd, &readfds); in ProcessIncoming()
368 if (maxfd < fd) { in ProcessIncoming()
369 maxfd = fd; in ProcessIncoming()
372 fd = clientSock; in ProcessIncoming()
373 if (fd >= 0) { in ProcessIncoming()
[all …]
/art/runtime/
Dzip_archive.cc76 static void SetCloseOnExec(int fd) { in SetCloseOnExec() argument
78 int flags = fcntl(fd, F_GETFD); in SetCloseOnExec()
80 PLOG(WARNING) << "fcntl(" << fd << ", F_GETFD) failed"; in SetCloseOnExec()
83 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in SetCloseOnExec()
85 PLOG(WARNING) << "fcntl(" << fd << ", F_SETFD, " << flags << ") failed"; in SetCloseOnExec()
105 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument
107 DCHECK_GT(fd, 0); in OpenFromFd()
110 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
Dmem_map.cc247 ScopedFd fd(-1); in MapAnonymous() local
265 fd.reset(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count)); in MapAnonymous()
266 if (fd.get() == -1) { in MapAnonymous()
331 actual = mmap(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
354 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
365 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
374 expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, in MapFileAtAddress() argument
427 fd, in MapFileAtAddress()
437 page_aligned_expected, page_aligned_byte_count, prot, flags, fd, in MapFileAtAddress()
[all …]
Dzip_archive_test.cc52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); in TEST_F() local
53 ASSERT_NE(-1, fd); in TEST_F()
57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F()
Dmonitor_android.cc60 int fd = open("/proc/self/cmdline", O_RDONLY); in LogContentionEvent() local
63 read(fd, procName, sizeof(procName) - 1); in LogContentionEvent()
64 close(fd); in LogContentionEvent()
Dmem_map.h70 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, in MapFile() argument
72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile()
83 static MemMap* MapFileAtAddress(byte* addr, size_t byte_count, int prot, int flags, int fd,
Dprofiler.cc275 int fd = open(full_name.c_str(), O_RDWR); in WriteProfile() local
276 if (fd < 0) { in WriteProfile()
284 int err = flock(fd, LOCK_EX); in WriteProfile()
291 profile_table_.ReadPrevious(fd, options_.GetProfileType()); in WriteProfile()
294 lseek(fd, 0, SEEK_SET); in WriteProfile()
304 int n = ::write(fd, p, length); in WriteProfile()
310 ftruncate(fd, full_length); in WriteProfile()
313 err = flock(fd, LOCK_UN); in WriteProfile()
319 ::close(fd); in WriteProfile()
721 static bool ReadProfileLine(int fd, std::string& line) { in ReadProfileLine() argument
[all …]
Ddex_file.cc55 ScopedFd fd(open(filename, O_RDONLY, 0)); in OpenAndReadMagic() local
56 if (fd.get() == -1) { in OpenAndReadMagic()
60 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); in OpenAndReadMagic()
65 if (lseek(fd.get(), 0, SEEK_SET) != 0) { in OpenAndReadMagic()
70 return fd.release(); in OpenAndReadMagic()
89 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg)); in GetChecksum() local
90 if (fd.get() == -1) { in GetChecksum()
95 …std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd.release(), filename, error_msg)); in GetChecksum()
110 …std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), filename, false, error_msg… in GetChecksum()
124 ScopedFd fd(OpenAndReadMagic(filename, &magic, error_msg)); in Open() local
[all …]
Dcommon_runtime_test.cc60 int fd = mkstemp(&filename_[0]); in ScratchFile() local
61 CHECK_NE(-1, fd); in ScratchFile()
62 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile()
68 int fd = open(filename_.c_str(), O_RDWR | O_CREAT, 0666); in ScratchFile() local
69 CHECK_NE(-1, fd); in ScratchFile()
70 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile()
Dsignal_catcher.cc106 int fd = open(stack_trace_file_.c_str(), O_APPEND | O_CREAT | O_WRONLY, 0666); in Output() local
107 if (fd == -1) { in Output()
111 std::unique_ptr<File> file(new File(fd, stack_trace_file_, true)); in Output()
Dzip_archive.h62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
/art/compiler/utils/mips/
Dassembler_mips.h110 void AddS(FRegister fd, FRegister fs, FRegister ft);
111 void SubS(FRegister fd, FRegister fs, FRegister ft);
112 void MulS(FRegister fd, FRegister fs, FRegister ft);
113 void DivS(FRegister fd, FRegister fs, FRegister ft);
114 void AddD(DRegister fd, DRegister fs, DRegister ft);
115 void SubD(DRegister fd, DRegister fs, DRegister ft);
116 void MulD(DRegister fd, DRegister fs, DRegister ft);
117 void DivD(DRegister fd, DRegister fs, DRegister ft);
118 void MovS(FRegister fd, FRegister fs);
119 void MovD(DRegister fd, DRegister fs);
[all …]
Dassembler_mips.cc70 void MipsAssembler::EmitFR(int opcode, int fmt, FRegister ft, FRegister fs, FRegister fd, int funct… in EmitFR() argument
73 CHECK_NE(fd, kNoFRegister); in EmitFR()
78 static_cast<int32_t>(fd) << kFdShift | in EmitFR()
344 void MipsAssembler::AddS(FRegister fd, FRegister fs, FRegister ft) { in AddS() argument
345 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); in AddS()
348 void MipsAssembler::SubS(FRegister fd, FRegister fs, FRegister ft) { in SubS() argument
349 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); in SubS()
352 void MipsAssembler::MulS(FRegister fd, FRegister fs, FRegister ft) { in MulS() argument
353 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); in MulS()
356 void MipsAssembler::DivS(FRegister fd, FRegister fs, FRegister ft) { in DivS() argument
[all …]
/art/runtime/native/
Ddalvik_system_VMDebug.cc91 int fd = dup(originalFd); in VMDebug_startMethodTracingFd() local
92 if (fd < 0) { in VMDebug_startMethodTracingFd()
104 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, false, samplingEnabled, intervalUs); in VMDebug_startMethodTracingFd()
212 int fd = -1; in VMDebug_dumpHprofData() local
214 fd = jniGetFDFromFileDescriptor(env, javaFd); in VMDebug_dumpHprofData()
215 if (fd < 0) { in VMDebug_dumpHprofData()
222 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData()
/art/runtime/base/unix_file/
Dmapped_file.h48 explicit MappedFile(int fd, bool check_usage) : FdFile(fd, check_usage), file_size_(-1), in MappedFile() argument
Dfd_file.cc31 FdFile::FdFile(int fd, bool check_usage) in FdFile() argument
33 fd_(fd), auto_close_(true) { in FdFile()
36 FdFile::FdFile(int fd, const std::string& path, bool check_usage) in FdFile() argument
38 fd_(fd), file_path_(path), auto_close_(true) { in FdFile()
Dfd_file.h38 explicit FdFile(int fd, bool checkUsage);
39 explicit FdFile(int fd, const std::string& path, bool checkUsage);
Dmapped_file_test.cc37 int fd = TEMP_FAILURE_RETRY(open(good_path_.c_str(), O_CREAT|O_RDWR, 0666)); in SetUp() local
38 FdFile dst(fd, false); in SetUp()
/art/compiler/utils/
Dswap_space_test.cc36 int fd = scratch.GetFd(); in SwapTest() local
39 SwapSpace pool(fd, 1 * MB); in SwapTest()
Dswap_space.cc66 SwapSpace::SwapSpace(int fd, size_t initial_size) in SwapSpace() argument
67 : fd_(fd), in SwapSpace()
Dswap_space.h62 SwapSpace(int fd, size_t initial_size);
/art/runtime/hprof/
Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
Dhprof.cc386 Hprof(const char* output_filename, int fd, bool direct_to_ddms) in Hprof() argument
388 fd_(fd), in Hprof()
1098 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { in DumpHeap() argument
1102 Hprof hprof(filename, fd, direct_to_ddms); in DumpHeap()
/art/compiler/
Delf_writer_mclinker.cc334 int fd = dup(elf_file_->Fd()); in Link() local
335 if (fd == -1) { in Link()
339 if (!linker_->emit(*module_.get(), fd)) { in Link()

12