From fdc6f323923b36add7ab7112b1b4d05368bd5902 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 20 May 2017 13:23:16 +0800 Subject: closer to working --HG-- branch : fuzz --- fuzz-wrapfd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fuzz-wrapfd.h') 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 -- cgit v1.2.3