Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 12 of 12) sorted by relevance

/bionic/libc/private/
DMallocXmlElem.h29 const char* attr_fmt = nullptr, ...) : fd_(fd), name_(name) { in fd_() function
30 dprintf(fd_, "<%s", name_); in fd_()
34 write(fd_, " ", 1); in fd_()
35 vdprintf(fd_, attr_fmt, args); in fd_()
38 write(fd_, ">", 1); in fd_()
42 dprintf(fd_, "</%s>", name_); in ~MallocXmlElem()
48 vdprintf(fd_, fmt, args); in Contents()
53 int fd_;
DScopedFd.h38 explicit ScopedFd(int fd) : fd_(fd) { in ScopedFd()
41 ScopedFd() : fd_(-1) { in ScopedFd()
49 if (fd_ != -1) {
51 close(fd_);
53 fd_ = fd;
57 return fd_; in get()
61 int fd_;
/bionic/libc/bionic/
Dbionic_netlink.cpp58 if (fd_.get() == -1) { in SendRequest()
59 fd_.reset(socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE)); in SendRequest()
60 if (fd_.get() == -1) return false; in SendRequest()
73 return (TEMP_FAILURE_RETRY(send(fd_.get(), &request, sizeof(request), 0)) == sizeof(request)); in SendRequest()
79 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_.get(), data_, size_, 0))) > 0) { in ReadResponses()
Ddirent.cpp54 int fd_; member
74 d->fd_ = fd; in __allocate_DIR()
85 return d->fd_; in dirfd()
109 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); in __fill_DIR()
168 int fd = d->fd_; in closedir()
179 lseek(d->fd_, 0, SEEK_SET); in rewinddir()
188 off_t ret = lseek(d->fd_, offset, SEEK_SET); in seekdir()
Dbionic_netlink.h49 ScopedFd fd_;
/bionic/docs/
Dfdsan.md293 if (move.fd_ != -1) {
294 fd_ = move.fd_;
295 move.fd_ = -1;
298 exchange_tag(fd_, move.tag(), tag());
304 int get() { return fd_; }
307 if (fd_ == -1) {
311 int fd = fd_;
312 fd_ = -1;
320 if (fd_ != -1) {
321 close(fd_, tag());
[all …]
/bionic/benchmarks/tests/
Dinterface_test.cpp49 int fd_; member in SystemTests
101 fd_ = fds[0]; in Exec()
127 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); in RunTest()
138 close(fd_); in RunTest()
/bionic/linker/
Dlinker_phdr.cpp141 : did_read_(false), did_load_(false), fd_(-1), file_offset_(0), file_size_(0), phdr_num_(0), in ElfReader()
152 fd_ = fd; in Read()
187 ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); in ReadElfHeader()
330 if (!phdr_fragment_.Map(fd_, file_offset_, header_.e_phoff, size)) { in ReadProgramHeaders()
356 if (!shdr_fragment_.Map(fd_, file_offset_, header_.e_shoff, size)) { in ReadSectionHeaders()
449 if (!dynamic_fragment_.Map(fd_, file_offset_, dynamic_shdr->sh_offset, dynamic_shdr->sh_size)) { in ReadDynamicSection()
462 if (!strtab_fragment_.Map(fd_, file_offset_, strtab_shdr->sh_offset, strtab_shdr->sh_size)) { in ReadDynamicSection()
695 fd_, in LoadSegments()
Dlinker_phdr.h76 int fd_; variable
Dlinker.cpp538 return fd_; in get_fd()
542 if (fd_ != -1 && close_fd_) { in set_fd()
543 close(fd_); in set_fd()
545 fd_ = fd; in set_fd()
591 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
618 fd_(-1), close_fd_(false), file_offset_(0), elf_readers_map_(readers_map), in LoadTask()
622 if (fd_ != -1 && close_fd_) { in ~LoadTask()
623 close(fd_); in ~LoadTask()
631 int fd_; member in LoadTask
/bionic/libc/async_safe/
Dasync_safe_log.cpp105 explicit FdOutputStream(int fd) : total(0), fd_(fd) {} in FdOutputStream()
114 ssize_t bytes = TEMP_FAILURE_RETRY(write(fd_, data, len)); in Send()
126 int fd_; member
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp98 int fd_; member in MallocHooksTest