comparison fuzz-wrapfd.h @ 1791:685b47d8faf7

fuzz: wrap kill()
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Jan 2021 21:47:56 +0800
parents a6da10ac64b5
children
comparison
equal deleted inserted replaced
1790:42745af83b7d 1791:685b47d8faf7
1 #ifndef FUZZ_WRAPFD_H 1 #ifndef FUZZ_WRAPFD_H
2 #define FUZZ_WRAPFD_H 2 #define FUZZ_WRAPFD_H
3 3
4 #include "includes.h"
4 #include "buffer.h" 5 #include "buffer.h"
5 6
6 enum wrapfd_mode { 7 enum wrapfd_mode {
7 UNUSED = 0, 8 UNUSED = 0,
8 COMMONBUF, // using the common buffer 9 COMMONBUF, // using the common buffer
19 int wrapfd_read(int fd, void *out, size_t count); 20 int wrapfd_read(int fd, void *out, size_t count);
20 int wrapfd_write(int fd, const void* in, size_t count); 21 int wrapfd_write(int fd, const void* in, size_t count);
21 int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, 22 int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds,
22 fd_set *exceptfds, struct timeval *timeout); 23 fd_set *exceptfds, struct timeval *timeout);
23 int wrapfd_close(int fd); 24 int wrapfd_close(int fd);
25 int fuzz_kill(pid_t pid, int sig);
24 26
25 #endif // FUZZ_WRAPFD_H 27 #endif // FUZZ_WRAPFD_H