Mercurial > hg > chrpath
annotate protos.h @ 2:7bf4a164d5bb default tip
fix bug: long_options have to be zero terminated
author | Peter Meerwald <p.meerwald@bct-electronic.com> |
---|---|
date | Fri, 20 Jul 2012 11:28:30 +0200 |
parents | bbbfb3f97919 |
children |
rev | line source |
---|---|
0 | 1 #ifndef PROTOS_H |
2 #define PROTOS_H | |
3 | |
4 #include <elf.h> | |
5 #include "config.h" | |
6 | |
7 #ifdef WORDS_BIGENDIAN | |
8 #define ELFDATA2 ELFDATA2MSB | |
9 #else | |
10 #define ELFDATA2 ELFDATA2LSB | |
11 #endif | |
12 | |
13 int killrpath(const char *filename); | |
14 int chrpath(const char *filename, const char *newpath, int convert); | |
15 | |
1
bbbfb3f97919
implement 32 and 64 bit support
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
0
diff
changeset
|
16 int elf32_open(const char *filename, int flags, Elf32_Ehdr *ehdr); |
bbbfb3f97919
implement 32 and 64 bit support
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
0
diff
changeset
|
17 int elf64_open(const char *filename, int flags, Elf64_Ehdr *ehdr); |
0 | 18 void elf_close(int fd); |
1
bbbfb3f97919
implement 32 and 64 bit support
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
0
diff
changeset
|
19 int elf32_find_dynamic_section(int fd, Elf32_Ehdr *ehdr, Elf32_Phdr *phdr); |
bbbfb3f97919
implement 32 and 64 bit support
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
0
diff
changeset
|
20 int elf64_find_dynamic_section(int fd, Elf64_Ehdr *ehdr, Elf64_Phdr *phdr); |
0 | 21 const char *elf_tagname(int tag); |
22 int elf_dynpath_tag(int tag); | |
23 | |
24 #endif /* PROTOS_H */ |