Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/libelf/_libelf.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $Id: _libelf.h 3174 2015-03-27 17:13:41Z emaste $ | * $Id: _libelf.h 3174 2015-03-27 17:13:41Z emaste $ | ||||
*/ | */ | ||||
#ifndef __LIBELF_H_ | #ifndef __LIBELF_H_ | ||||
#define __LIBELF_H_ | #define __LIBELF_H_ | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <stdbool.h> | |||||
cem: Usually sys headers come before standard C ones | |||||
#include "_libelf_config.h" | #include "_libelf_config.h" | ||||
#include "_elftc.h" | #include "_elftc.h" | ||||
/* | /* | ||||
* Library-private data structures. | * Library-private data structures. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
long _libelf_checksum(Elf *_e, int _elfclass); | long _libelf_checksum(Elf *_e, int _elfclass); | ||||
void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); | void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); | ||||
unsigned int _libelf_falign(Elf_Type _t, int _elfclass); | unsigned int _libelf_falign(Elf_Type _t, int _elfclass); | ||||
size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, | size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, | ||||
size_t count); | size_t count); | ||||
int (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) | int (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) | ||||
(unsigned char *_dst, size_t dsz, unsigned char *_src, | (unsigned char *_dst, size_t dsz, unsigned char *_src, | ||||
size_t _cnt, int _byteswap); | size_t _cnt, int _byteswap); | ||||
Elf_Data *_libelf_getdata(Elf_Scn *s, Elf_Data *ed, bool updating); | |||||
void *_libelf_getphdr(Elf *_e, int _elfclass); | void *_libelf_getphdr(Elf *_e, int _elfclass); | ||||
void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); | void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); | ||||
void _libelf_init_elf(Elf *_e, Elf_Kind _kind); | void _libelf_init_elf(Elf *_e, Elf_Kind _kind); | ||||
int _libelf_load_section_headers(Elf *e, void *ehdr); | int _libelf_load_section_headers(Elf *e, void *ehdr); | ||||
unsigned int _libelf_malign(Elf_Type _t, int _elfclass); | unsigned int _libelf_malign(Elf_Type _t, int _elfclass); | ||||
Elf *_libelf_memory(unsigned char *_image, size_t _sz, int _reporterror); | Elf *_libelf_memory(unsigned char *_image, size_t _sz, int _reporterror); | ||||
size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); | size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); | ||||
void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); | void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); | ||||
Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); | Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); | ||||
struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); | struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); | ||||
Not Done Inline ActionsHard to tell from Phab, but it looks like other declarations have a tab between the underlying type and the * or function name, and the new ones may not? If they do, ignore this. cem: Hard to tell from Phab, but it looks like other declarations have a tab between the underlying… | |||||
Elf *_libelf_release_elf(Elf *_e); | Elf *_libelf_release_elf(Elf *_e); | ||||
Elf_Scn *_libelf_release_scn(Elf_Scn *_s); | Elf_Scn *_libelf_release_scn(Elf_Scn *_s); | ||||
int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); | int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); | ||||
int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); | int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); | ||||
int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, | int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, | ||||
size_t _shstrndx); | size_t _shstrndx); | ||||
Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, | Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, | ||||
unsigned int _encoding, int _elfclass, int _direction); | unsigned int _encoding, int _elfclass, int _direction); | ||||
Done Inline Actionsalpha order, no space between * and func emaste: alpha order, no space between `*` and func | |||||
Done Inline ActionsSpace after * (return type) does not match existing file style cem: Space after `*` (return type) does not match existing file style | |||||
int _libelf_xlate_shtype(uint32_t _sht); | int _libelf_xlate_shtype(uint32_t _sht); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif /* __LIBELF_H_ */ | #endif /* __LIBELF_H_ */ |
Usually sys headers come before standard C ones