Lines Matching refs:fd
94 __elf_fdnlist(int fd, struct nlist *list)
111 if (pread(fd, &ehdr, sizeof(Elf_Ehdr), (off_t)0) != sizeof(Elf_Ehdr) ||
112 !__elf_is_okay__(&ehdr) || fstat(fd, &st) == -1)
127 MAP_SHARED|MAP_FILE, fd, (off_t) ehdr.e_shoff);
133 if (pread(fd, shdr, shdr_size, (off_t)ehdr.e_shoff) !=
204 if (pread(fd, strtab, symstrsize, (off_t)symstroff) !=
211 MAP_SHARED|MAP_FILE, fd, (off_t) symstroff);
218 if (pread(fd, sbuf, cc, (off_t)symoff) != cc)
301 int fd, n;
303 fd = open(name, O_RDONLY);
304 if (fd == -1)
306 n = __elf_fdnlist(fd, list);
307 close(fd);