summaryrefslogtreecommitdiffhomepage
path: root/fuzz-wrapfd.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-20 13:23:16 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-20 13:23:16 +0800
commitfdc6f323923b36add7ab7112b1b4d05368bd5902 (patch)
tree0eb315924b21f11431f5195cfc7e6bab2aa4b6e2 /fuzz-wrapfd.h
parente7cdb2ebe5982e4fd881d9ee1e472ad922237b07 (diff)
closer to working
--HG-- branch : fuzz
Diffstat (limited to 'fuzz-wrapfd.h')
-rw-r--r--fuzz-wrapfd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fuzz-wrapfd.h b/fuzz-wrapfd.h
index d4578b7..a73a7fe 100644
--- a/fuzz-wrapfd.h
+++ b/fuzz-wrapfd.h
@@ -14,4 +14,10 @@ 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);
+// called via #defines for read/write/select
+int wrapfd_read(int fd, void *out, size_t count);
+int wrapfd_write(int fd, const void* in, size_t count);
+int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds,
+ fd_set *exceptfds, struct timeval *timeout);
+
#endif // FUZZ_WRAPFD_H