diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-19 00:48:46 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-19 00:48:46 +0800 |
commit | e7cdb2ebe5982e4fd881d9ee1e472ad922237b07 (patch) | |
tree | a452e928f0798553aa4f27bda068f101c978f897 /fuzz-wrapfd.h | |
parent | 4dae8edb76c3c252b681669c16f978477c633c16 (diff) |
add wrapfd. improve fuzzer in makefile
--HG--
branch : fuzz
Diffstat (limited to 'fuzz-wrapfd.h')
-rw-r--r-- | fuzz-wrapfd.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fuzz-wrapfd.h b/fuzz-wrapfd.h new file mode 100644 index 0000000..d4578b7 --- /dev/null +++ b/fuzz-wrapfd.h @@ -0,0 +1,17 @@ +#ifndef FUZZ_WRAPFD_H +#define FUZZ_WRAPFD_H + +#include "buffer.h" + +enum wrapfd_mode { + UNUSED = 0, + PLAIN, + INPROGRESS, + RANDOMIN, +}; + +void wrapfd_setup(uint32_t wrapseed); +// doesn't take ownership of buf. buf is optional. +void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); + +#endif // FUZZ_WRAPFD_H |