Searched refs:fd_ (Results 1 - 9 of 9) sorted by relevance

/bionic/libc/bionic/
H A Dbionic_netlink.cpp42 fd_ = -1;
52 if (fd_ != -1) close(fd_);
62 if (fd_ == -1) {
63 fd_ = socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
64 if (fd_ == -1) return false;
77 return (TEMP_FAILURE_RETRY(send(fd_, &request, sizeof(request), 0)) == sizeof(request));
83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) {
H A Dbionic_netlink.h48 int fd_; member in class:NetlinkConnection
H A Ddirent.cpp51 int fd_; member in struct:DIR
64 d->fd_ = fd;
73 return dirp->fd_;
96 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_)));
152 int fd = d->fd_;
160 lseek(d->fd_, 0, SEEK_SET);
167 off_t ret = lseek(d->fd_, offset, SEEK_SET);
H A Dlibc_logging.cpp106 explicit FdOutputStream(int fd) : total(0), fd_(fd) {
117 int rc = TEMP_FAILURE_RETRY(write(fd_, data, len));
129 int fd_; member in struct:FdOutputStream
/bionic/tools/relocation_packer/src/
H A Delf_file.h37 : fd_(fd), is_padding_relocations_(false), elf_(NULL),
99 int fd_; member in class:relocation_packer::ElfFile
H A Delf_file.cc138 Elf* elf = elf_begin(fd_, ELF_C_RDWR, NULL);
961 const int truncate = ftruncate(fd_, file_bytes);
/bionic/linker/
H A Dlinker_phdr.h73 int fd_; member in class:ElfReader
H A Dlinker_phdr.cpp143 : did_read_(false), did_load_(false), fd_(-1), file_offset_(0), file_size_(0), phdr_num_(0),
153 fd_ = fd;
188 ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_));
315 if (!phdr_fragment_.Map(fd_, file_offset_, header_.e_phoff, size)) {
341 if (!shdr_fragment_.Map(fd_, file_offset_, header_.e_shoff, size)) {
430 if (!dynamic_fragment_.Map(fd_, file_offset_, dynamic_shdr->sh_offset, dynamic_shdr->sh_size)) {
443 if (!strtab_fragment_.Map(fd_, file_offset_, strtab_shdr->sh_offset, strtab_shdr->sh_size)) {
652 fd_,
H A Dlinker.cpp590 return fd_;
594 fd_ = fd;
630 return elf_reader.Read(realpath, fd_, file_offset_, file_size);
654 fd_(-1), close_fd_(false), file_offset_(0), elf_readers_map_(readers_map),
658 if (fd_ != -1 && close_fd_) {
659 close(fd_);
667 int fd_; member in class:LoadTask

Completed in 6675 milliseconds