_libelf.h (210330) | _libelf.h (210338) |
---|---|
1/*- 2 * Copyright (c) 2006 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2006 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libelf/_libelf.h 210330 2010-07-21 09:47:14Z kaiw $ | 26 * $FreeBSD: head/lib/libelf/_libelf.h 210338 2010-07-21 10:25:02Z kaiw $ |
27 */ 28 29#ifndef __LIBELF_H_ 30#define __LIBELF_H_ 31 32#include <sys/queue.h> 33 34#ifndef NULL --- 131 unchanged lines hidden (view full) --- 166Elf *_libelf_ar_open(Elf *_e); 167Elf *_libelf_ar_open_member(int _fd, Elf_Cmd _c, Elf *_ar); 168Elf_Arsym *_libelf_ar_process_symtab(Elf *_ar, size_t *_dst); 169unsigned long _libelf_checksum(Elf *_e, int _elfclass); 170void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); 171int _libelf_falign(Elf_Type _t, int _elfclass); 172size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, 173 size_t count); | 27 */ 28 29#ifndef __LIBELF_H_ 30#define __LIBELF_H_ 31 32#include <sys/queue.h> 33 34#ifndef NULL --- 131 unchanged lines hidden (view full) --- 166Elf *_libelf_ar_open(Elf *_e); 167Elf *_libelf_ar_open_member(int _fd, Elf_Cmd _c, Elf *_ar); 168Elf_Arsym *_libelf_ar_process_symtab(Elf *_ar, size_t *_dst); 169unsigned long _libelf_checksum(Elf *_e, int _elfclass); 170void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); 171int _libelf_falign(Elf_Type _t, int _elfclass); 172size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, 173 size_t count); |
174void (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) 175 (char *_dst, char *_src, size_t _cnt, int _byteswap); | 174int (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) 175 (char *_dst, size_t dsz, char *_src, size_t _cnt, int _byteswap); |
176void *_libelf_getphdr(Elf *_e, int _elfclass); 177void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); 178void _libelf_init_elf(Elf *_e, Elf_Kind _kind); 179int _libelf_load_scn(Elf *e, void *ehdr); 180int _libelf_malign(Elf_Type _t, int _elfclass); 181size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); 182void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); 183Elf_Data *_libelf_release_data(Elf_Data *_d); 184Elf *_libelf_release_elf(Elf *_e); 185Elf_Scn *_libelf_release_scn(Elf_Scn *_s); 186int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); 187int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); 188int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, 189 size_t _shstrndx); 190Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, 191 unsigned int _encoding, int _elfclass, int _direction); 192int _libelf_xlate_shtype(uint32_t _sht); 193 194#endif /* __LIBELF_H_ */ | 176void *_libelf_getphdr(Elf *_e, int _elfclass); 177void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); 178void _libelf_init_elf(Elf *_e, Elf_Kind _kind); 179int _libelf_load_scn(Elf *e, void *ehdr); 180int _libelf_malign(Elf_Type _t, int _elfclass); 181size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); 182void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); 183Elf_Data *_libelf_release_data(Elf_Data *_d); 184Elf *_libelf_release_elf(Elf *_e); 185Elf_Scn *_libelf_release_scn(Elf_Scn *_s); 186int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); 187int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); 188int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, 189 size_t _shstrndx); 190Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, 191 unsigned int _encoding, int _elfclass, int _direction); 192int _libelf_xlate_shtype(uint32_t _sht); 193 194#endif /* __LIBELF_H_ */ |