Lines Matching refs:fd
52 static status_t Create(int fd, preloaded_image** _image);
53 static status_t Load(int fd, preloaded_image* image);
59 static status_t _LoadSymbolTable(int fd, ImageType* image);
177 ELFLoader<Class>::Create(int fd, preloaded_image** _image)
183 ssize_t length = read_pos(fd, 0, &image->elf_header, sizeof(EhdrType));
209 ELFLoader<Class>::Load(int fd, preloaded_image* _image)
227 length = read_pos(fd, elfHeader.e_phoff, programHeaders, size);
357 length = read_pos(fd, header.p_offset,
384 _LoadSymbolTable(fd, image);
480 ELFLoader<Class>::_LoadSymbolTable(int fd, ImageType* image)
498 ssize_t length = read_pos(fd, elfHeader.e_shoff, sectionHeaders, size);
525 length = read_pos(fd, sectionHeaders[i].sh_offset, symbolTable,
553 length = read_pos(fd, stringHeader->sh_offset, stringTable, size);
665 elf_load_image(int fd, preloaded_image** _image)
669 TRACE(("elf_load_image(fd = %d, _image = %p)\n", fd, _image));
674 status = ELF64Loader::Create(fd, _image);
676 return ELF64Loader::Load(fd, *_image);
684 status = ELF32Loader::Create(fd, _image);
686 return ELF32Loader::Load(fd, *_image);
701 int fd = open_from(directory, path, O_RDONLY);
702 if (fd < 0)
703 return fd;
708 if (fstat(fd, &stat) < 0)
715 close(fd);
722 status_t status = elf_load_image(fd, &image);
733 close(fd);