blob: 02354ec5cc1ef3e1c765191fbec1a1ad69930cdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef H_VIV_HOOK
#define H_VIV_HOOK
#include <sys/mman.h>
extern void the_hook(const char *filename);
extern void close_hook(void);
extern void hook_start_logging(const char *filename);
extern int my_open(const char* path, int flags, ...);
extern void *my_mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
extern int my_munmap(void *addr, size_t length);
extern int my_ioctl(int d, int request, void *ptr);
#endif
|