about summary refs log tree commit diff
path: root/include/common.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-05-30 11:02:34 +0200
committerDominik Maier <domenukk@gmail.com>2020-05-30 11:02:34 +0200
commit38e5c32a55086d36c8b9ee38e4b20c15517fc4b2 (patch)
tree30f7eebc1a1725b31904c3cec9fd7c5d459ff27f /include/common.h
parent0c50945303e12cbe46cfb98578bbe129305018c4 (diff)
downloadafl++-38e5c32a55086d36c8b9ee38e4b20c15517fc4b2.tar.gz
corrected read_timed for values > 4
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
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.