comparison fuzz-wrapfd.h @ 1377:d4cc85e6c569 fuzz

rearrange, all fuzzers now call fuzzer_set_input()
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 May 2017 22:21:49 +0800
parents 16f45f2df38f
children e75dab5bec71
comparison
equal deleted inserted replaced
1376:9e9c8d37fd56 1377:d4cc85e6c569
8 PLAIN, 8 PLAIN,
9 INPROGRESS, 9 INPROGRESS,
10 RANDOMIN, 10 RANDOMIN,
11 }; 11 };
12 12
13 void wrapfd_setup(uint32_t wrapseed); 13 void wrapfd_setup();
14 void wrapfd_setseed(uint32_t seed);
14 // doesn't take ownership of buf. buf is optional. 15 // doesn't take ownership of buf. buf is optional.
15 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); 16 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode);
16 17
17 // called via #defines for read/write/select 18 // called via #defines for read/write/select
18 int wrapfd_read(int fd, void *out, size_t count); 19 int wrapfd_read(int fd, void *out, size_t count);