-
Notifications
You must be signed in to change notification settings - Fork 2
/
resolv.h
36 lines (29 loc) · 817 Bytes
/
resolv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* itrace
*
* Address resolver specific routines header
*
*/
#ifndef ITRACE_RESOLV_H
#define ITRACE_RESOLV_H
#include <limits.h>
#include <stdint.h>
void resolv_startup();
void resolv_shutdown();
int resolv_is_dynamic(uintptr_t);
void resolv_show_maps();
const char* resolv_symbol(uintptr_t);
typedef struct {
uintptr_t saddr; /* Start address */
uintptr_t eaddr; /* End address */
char fname[PATH_MAX]; /* File name */
char perms[5]; /* Permissions */
int is_dynamic;
} resolv_segment;
typedef struct {
uintptr_t baddr; /* Base address of executable */
resolv_segment *segments; /* Segments mapped to the process */
unsigned int num_segments; /* Number of segments */
} resolv_info;
extern resolv_info r_info;
#endif /* ITRACE_RESOLV_H */