Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1356:3677a510f545 | 1357:08f4fa4dc6a0 |
---|---|
12 | 12 |
13 void wrapfd_setup(uint32_t wrapseed); | 13 void wrapfd_setup(uint32_t wrapseed); |
14 // doesn't take ownership of buf. buf is optional. | 14 // doesn't take ownership of buf. buf is optional. |
15 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); | 15 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); |
16 | 16 |
17 // called via #defines for read/write/select | |
18 int wrapfd_read(int fd, void *out, size_t count); | |
19 int wrapfd_write(int fd, const void* in, size_t count); | |
20 int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, | |
21 fd_set *exceptfds, struct timeval *timeout); | |
22 | |
17 #endif // FUZZ_WRAPFD_H | 23 #endif // FUZZ_WRAPFD_H |