Commit Graph

943 Commits (b21da7cf7013626f3d9b2aec133c40b8f1121fd0)

Author SHA1 Message Date
Felix von Leitner b21da7cf70 add support for saving syscalls with accept4 2021-03-12 16:23:32 +00:00
Felix von Leitner 9e831fe414 move cleanup after check that all events are handled 2021-03-12 10:43:46 +00:00
Felix von Leitner 874530bace prevent infinite loop in cleanup code for
io_close-with-outstanding-events-queued race prevention
2021-03-11 14:13:51 +00:00
Felix von Leitner d342fa80e2 properly initialize deferred list in io_fd (did not help though) 2021-03-09 13:54:59 +00:00
Felix von Leitner 9f9b777fab add snarky comment 2021-02-18 23:21:57 +00:00
Felix von Leitner ce92de14c0 might actually work now 2021-02-17 13:48:39 +00:00
Felix von Leitner 5420136c6b attempt to prevent future endless loops in io_wait half-closed fd
cleanup
2021-02-16 15:50:38 +00:00
Felix von Leitner 93111d2dc7 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf 2021-01-03 23:15:28 +00:00
Felix von Leitner 96a42d6c7e document changes 2020-12-07 17:54:40 +00:00
Felix von Leitner c9823c9fbd you need to #include <stdlib.h> 2020-12-07 17:53:46 +00:00
Felix von Leitner 40a5ae7d3b add fmt_strm_malloc 2020-12-07 17:53:24 +00:00
Felix von Leitner bd5461a618 add man page for fmt_strm_alloca and fmt_strm_malloc 2020-12-07 17:53:13 +00:00
Felix von Leitner 6acd715154 mmap_private opens the file for reading, not for writing 2020-12-07 15:00:54 +00:00
Felix von Leitner 624c3ac378 more cross references for open_* 2020-12-07 14:57:16 +00:00
Felix von Leitner 00b0891427 correct file open mode for mmap_private man page 2020-12-07 14:20:57 +00:00
Felix von Leitner 7a484e1f0e more cross references 2020-12-07 14:20:04 +00:00
Felix von Leitner bab35a1169 update dependencies, use $(AR) and $(RANLIB) 2020-12-01 13:50:02 +00:00
Felix von Leitner 8b933945a1 forward changes made in prototypes to actual implementation 2020-11-20 13:42:58 +00:00
Felix von Leitner fe000e3df8 buffer_seek did not work at all m( 2020-11-14 17:34:21 +00:00
Felix von Leitner 1948ac17a4 undo fatfinger 2020-11-14 17:21:58 +00:00
Felix von Leitner 81def53a7d also advance cur if upstream is a bytestream or an iobuf 2020-11-14 17:09:49 +00:00
Felix von Leitner 96ea061228 also increment cur in bs_skip if upstream is not a memory buffer 2020-11-14 16:53:54 +00:00
Felix von Leitner c3366f8bbb only use writev for larger chunks in buffer_putflush
only use lseek if it saves a read in buffer_seek
2020-11-10 21:51:22 +00:00
Felix von Leitner 726614af36 abort loop if EOF 2020-11-10 21:23:45 +00:00
Felix von Leitner a10f89d5f3 add compiler.h to abstract gcc attributes 2020-11-08 00:29:35 +00:00
Felix von Leitner 78084c5bd5 also set upstream to error state 2020-11-01 20:15:32 +00:00
Felix von Leitner addd1d3e88 add bs_seterrorstate 2020-11-01 15:16:16 +00:00
Felix von Leitner 622ee36925 also install parse.h 2020-10-30 21:39:46 +00:00
Felix von Leitner c7e6a3a55d buffer_seek is no longer limited to the current buffer contents
add automated way to run unit test: make check
  add parse.h
  add bytestream abstraction for parsing data from a buffer or a file
2020-10-30 20:54:08 +00:00
Felix von Leitner 26a48663ab add functions for capacity checking and to skip bytes 2020-10-30 19:50:06 +00:00
Felix von Leitner 36e3301ed9 make check can now run in parallel 2020-10-30 19:46:30 +00:00
Felix von Leitner 36059b066a move bs_err into own C file 2020-10-30 15:35:53 +00:00
Felix von Leitner da6046bc71 add unit tests for bs_capacitycheck (same as for bs_capacityassert
basically)
2020-10-30 15:18:37 +00:00
Felix von Leitner 626a424607 remove some warnings in unit tests
catch impossible buffer in bs_init_membuf
2020-10-30 15:06:17 +00:00
Felix von Leitner da34bb9603 add "make check" target and make it work :) 2020-10-30 14:50:42 +00:00
Felix von Leitner 835476466a fix unit tests 2020-10-30 14:39:49 +00:00
Felix von Leitner 5ce2f8743c make unit tests self contained 2020-10-30 14:36:05 +00:00
Felix von Leitner 671b6ed25e add prs_readblob (no unit tests yet) 2020-10-30 12:52:15 +00:00
Felix von Leitner c8b8fbe93b add and use bs_capacityassert 2020-10-30 12:13:05 +00:00
Felix von Leitner 04f6a50952 add asciiz parsing 2020-10-30 01:27:19 +00:00
Felix von Leitner 6c1276294d add buffer_peekc 2020-10-30 00:26:41 +00:00
Felix von Leitner e1484560e8 add a few helpers for parsing binary data 2020-10-29 23:25:54 +00:00
Felix von Leitner ee6c774c98 give __readmem__ its own #ifndef 2020-10-27 20:43:09 +00:00
Felix von Leitner 966c3f4d2f add byte_start, byte_starts
add a man page for byte_equal_notimingattack
2020-10-22 20:43:13 +00:00
Felix von Leitner f56460eebc first_deferred actually needs to be extern all the time, not just
my_extern
2020-08-10 01:40:40 +00:00
Felix von Leitner 0d817b6e57 add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1 2020-07-14 19:55:38 +00:00
Felix von Leitner 39587d0c14 fmt_copybytes and fmt_copybytes_sizeof_minus1 now follow the dest==NULL
convention
2020-07-14 19:49:39 +00:00
Felix von Leitner 85dfa44135 add fmt_copybytes_sizeof_minus1 2020-07-14 19:46:35 +00:00
Felix von Leitner 1b2e166e79 add fmt and scan versions of uint* 2020-07-14 18:11:59 +00:00
Felix von Leitner 6567d89ac0 add static analyzer targets 2020-07-14 16:08:26 +00:00