diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-05-30 11:02:34 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-05-30 11:02:34 +0200 |
commit | 38e5c32a55086d36c8b9ee38e4b20c15517fc4b2 (patch) | |
tree | 30f7eebc1a1725b31904c3cec9fd7c5d459ff27f /include/common.h | |
parent | 0c50945303e12cbe46cfb98578bbe129305018c4 (diff) | |
download | afl++-38e5c32a55086d36c8b9ee38e4b20c15517fc4b2.tar.gz |
corrected read_timed for values > 4
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 4aed9572..7b7bf02d 100644 --- a/include/common.h +++ b/include/common.h @@ -107,6 +107,9 @@ u8 *u_stringify_mem_size(u8 *buf, u64 val); u8 *u_stringify_time_diff(u8 *buf, u64 cur_ms, u64 event_ms); +/* Sets a filedescriptor to non-blocking mode (for read_timed) */ +void set_nonblocking(int fd); + /* Wrapper for select() and read(), reading exactly len bytes. Returns the time passed to read. stop_soon should point to a variable indicating ctrl+c was pressed. |