Lines Matching refs:fd
87 __fdnlist(int fd, struct nlist *list)
104 if (pread(fd, &ehdr, sizeof(Elf_Ehdr), 0) != sizeof(Elf_Ehdr) ||
105 !__elf_is_okay__(&ehdr) || fstat(fd, &st) == -1)
119 shdr = mmap(NULL, shdr_size, PROT_READ, MAP_SHARED|MAP_FILE, fd,
126 if (pread(fd, shdr, shdr_size, ehdr.e_shoff) != shdr_size) {
196 if (pread(fd, strtab, symstrsize, symstroff) != symstrsize) {
202 fd, symstroff);
209 if (pread(fd, sbuf, cc, symoff) != cc)
293 int fd, n;
295 fd = open(name, O_RDONLY | O_CLOEXEC);
296 if (fd == -1)
298 n = __fdnlist(fd, list);
299 (void)close(fd);