about summary refs log tree commit diff
path: root/include/common.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-10 17:47:22 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-10 17:47:22 +0200
commitf0f83bab5299098a441af40236f3758171b69889 (patch)
tree8dabf0609ced7101c467d945bb173be9b180105b /include/common.h
parent6aa6af04acb8f024696e8723e6d73514006b3dd5 (diff)
downloadafl++-f0f83bab5299098a441af40236f3758171b69889.tar.gz
resize fix + code format
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index c9436e81..8dd66355 100644
--- a/include/common.h
+++ b/include/common.h
@@ -99,9 +99,11 @@ u8 *u_stringify_time_diff(u8 *buf, u64 cur_ms, u64 event_ms);
 
 /* 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.
   If the wait times out, returns timeout_ms + 1;
   Returns 0 if an error occurred (fd closed, signal, ...); */
-u32 read_timed(s32 fd, void *buf, size_t len, u32 timeout_ms);
+u32 read_timed(s32 fd, void *buf, size_t len, u32 timeout_ms,
+               volatile u8 *stop_soon_p);
 
 #endif