Searched refs:elffd (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 192 EI->elffd = fd; in elf_read() 195 if (pread64(EI->elffd, (void*)ehdr, size, 0) != size) in elf_read() 259 if (pread64(EI->elffd, (void *)&EI_Phdr, size, off) != size) in get_phdr() 292 if (pread64(EI->elffd, (void *)&EI_Shdr, size, off) != size) in get_shdr() 342 if (pread64(EI->elffd, (void *)nhdr, nsz, offset) in process_phdr() 361 if (pread64(EI->elffd, psinfo, dsz, offset) != dsz) in process_phdr() 439 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr() 477 if ((pread64(EI->elffd, &Chdr, csize, cap_off) in process_shdr() 526 if (pread64(EI->elffd, &dyn, dsize, doff) in process_shdr()
|
H A D | file.c | 143 static int elffd = -1; variable 187 int elf_read32(int elffd, Elf_Info *EInfo); 188 int elf_read64(int elffd, Elf_Info *EInfo); 526 elffd = open64(file, O_RDONLY); in type() 527 if (elffd < 0) { in type() 701 ar_coff_or_aout(elffd); in def_position_tests() 927 ar_coff_or_aout(int elffd) in ar_coff_or_aout() argument 936 elf = elf_begin(elffd, ELF_C_READ, (Elf *)0); in ar_coff_or_aout() 1287 if (check_ident(ident, elffd) == ELF_READ_FAIL) in elf_check() 1296 if (elf_read32(elffd, &EInfo) == ELF_READ_FAIL) { in elf_check() [all …]
|
H A D | elf_read.h | 37 int elffd; /* fd of file being processed */ member
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 843 int elffd = -1; in validate_unix() local 887 if ((elffd = open64(arg, O_RDONLY)) < 0 || in validate_unix() 888 (pread64(elffd, ident, EI_NIDENT, 0) != EI_NIDENT)) { in validate_unix() 914 if (elffd >= 0) { in validate_unix() 915 (void) close(elffd); in validate_unix() 916 elffd = -1; in validate_unix()
|