forked from nccgroup/TriforceLinuxSyscallFuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrv.h
26 lines (21 loc) · 709 Bytes
/
drv.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
#include <stdlib.h>
struct slice {
unsigned char *cur;
unsigned char *end;
};
/* aflCall.c */
extern int aflTestMode;
int startForkserver(int ticks);
char *getWork(u_long *sizep);
int startWork(u_int64_t start, u_int64_t end);
int doneWork(int val);
/* parse.c */
void mkSlice(struct slice *b, void *base, size_t sz);
unsigned char *sliceBuf(struct slice *b);
size_t sliceSize(struct slice *b);
int getEOF(struct slice *b);
int getU8(struct slice *b, u_int8_t *x);
int getU16(struct slice *b, u_int16_t *x);
int getU32(struct slice *b, u_int32_t *x);
int getU64(struct slice *b, u_int64_t *x);
int getDelimSlices(struct slice *b, char *delim, int delsz, size_t max, struct slice *x, size_t *nx);