Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dbionic_netlink.cpp42 fd_ = -1; in NetlinkConnection()
52 if (fd_ != -1) close(fd_); in ~NetlinkConnection()
62 if (fd_ == -1) { in SendRequest()
63 fd_ = socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in SendRequest()
64 if (fd_ == -1) return false; in SendRequest()
77 return (TEMP_FAILURE_RETRY(send(fd_, &request, sizeof(request), 0)) == sizeof(request)); in SendRequest()
83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, 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.h47 int fd_;
/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/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/linker/
Dlinker_phdr.cpp143 : did_read_(false), did_load_(false), fd_(-1), file_offset_(0), file_size_(0), phdr_num_(0), in ElfReader()
154 fd_ = fd; in Read()
189 ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); in ReadElfHeader()
333 if (!phdr_fragment_.Map(fd_, file_offset_, header_.e_phoff, size)) { in ReadProgramHeaders()
359 if (!shdr_fragment_.Map(fd_, file_offset_, header_.e_shoff, size)) { in ReadSectionHeaders()
452 if (!dynamic_fragment_.Map(fd_, file_offset_, dynamic_shdr->sh_offset, dynamic_shdr->sh_size)) { in ReadDynamicSection()
465 if (!strtab_fragment_.Map(fd_, file_offset_, strtab_shdr->sh_offset, strtab_shdr->sh_size)) { in ReadDynamicSection()
653 fd_, in LoadSegments()
Dlinker_phdr.h74 int fd_; variable
Dlinker.cpp648 return fd_; in get_fd()
652 if (fd_ != -1 && close_fd_) { in set_fd()
653 close(fd_); in set_fd()
655 fd_ = fd; in set_fd()
696 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
721 fd_(-1), close_fd_(false), file_offset_(0), elf_readers_map_(readers_map), in LoadTask()
725 if (fd_ != -1 && close_fd_) { in ~LoadTask()
726 close(fd_); in ~LoadTask()
734 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