Mercurial > dropbear
diff fuzz-wrapfd.h @ 1357:08f4fa4dc6a0 fuzz
closer to working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 20 May 2017 13:23:16 +0800 |
parents | 3677a510f545 |
children | 16f45f2df38f |
line wrap: on
line diff
--- a/fuzz-wrapfd.h Fri May 19 00:48:46 2017 +0800 +++ b/fuzz-wrapfd.h Sat May 20 13:23:16 2017 +0800 @@ -14,4 +14,10 @@ // 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