This commit is contained in:
Dominik Maier
2020-05-30 20:38:01 +02:00
parent 4a54328901
commit c0ed118ba5
2 changed files with 4 additions and 10 deletions

View File

@ -107,14 +107,7 @@ u8 *u_stringify_mem_size(u8 *buf, u64 val);
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,
volatile u8 *stop_soon_p);
/* Reads the map size from ENV */
u32 get_map_size(void);
#endif