942 Commits (9e831fe414ad38cd80b0cf1fdf5d2d4a3eda17e1)
 

Author SHA1 Message Date
Felix von Leitner 9e831fe414 move cleanup after check that all events are handled 2 years ago
Felix von Leitner 874530bace prevent infinite loop in cleanup code for
io_close-with-outstanding-events-queued race prevention
2 years ago
Felix von Leitner d342fa80e2 properly initialize deferred list in io_fd (did not help though) 2 years ago
Felix von Leitner 9f9b777fab add snarky comment 2 years ago
Felix von Leitner ce92de14c0 might actually work now 2 years ago
Felix von Leitner 5420136c6b attempt to prevent future endless loops in io_wait half-closed fd
cleanup
2 years ago
Felix von Leitner 93111d2dc7 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf 2 years ago
Felix von Leitner 96a42d6c7e document changes 3 years ago
Felix von Leitner c9823c9fbd you need to #include <stdlib.h> 3 years ago
Felix von Leitner 40a5ae7d3b add fmt_strm_malloc 3 years ago
Felix von Leitner bd5461a618 add man page for fmt_strm_alloca and fmt_strm_malloc 3 years ago
Felix von Leitner 6acd715154 mmap_private opens the file for reading, not for writing 3 years ago
Felix von Leitner 624c3ac378 more cross references for open_* 3 years ago
Felix von Leitner 00b0891427 correct file open mode for mmap_private man page 3 years ago
Felix von Leitner 7a484e1f0e more cross references 3 years ago
Felix von Leitner bab35a1169 update dependencies, use $(AR) and $(RANLIB) 3 years ago
Felix von Leitner 8b933945a1 forward changes made in prototypes to actual implementation 3 years ago
Felix von Leitner fe000e3df8 buffer_seek did not work at all m( 3 years ago
Felix von Leitner 1948ac17a4 undo fatfinger 3 years ago
Felix von Leitner 81def53a7d also advance cur if upstream is a bytestream or an iobuf 3 years ago
Felix von Leitner 96ea061228 also increment cur in bs_skip if upstream is not a memory buffer 3 years ago
Felix von Leitner c3366f8bbb only use writev for larger chunks in buffer_putflush
only use lseek if it saves a read in buffer_seek
3 years ago
Felix von Leitner 726614af36 abort loop if EOF 3 years ago
Felix von Leitner a10f89d5f3 add compiler.h to abstract gcc attributes 3 years ago
Felix von Leitner 78084c5bd5 also set upstream to error state 3 years ago
Felix von Leitner addd1d3e88 add bs_seterrorstate 3 years ago
Felix von Leitner 622ee36925 also install parse.h 3 years ago
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
3 years ago
Felix von Leitner 26a48663ab add functions for capacity checking and to skip bytes 3 years ago
Felix von Leitner 36e3301ed9 make check can now run in parallel 3 years ago
Felix von Leitner 36059b066a move bs_err into own C file 3 years ago
Felix von Leitner da6046bc71 add unit tests for bs_capacitycheck (same as for bs_capacityassert
basically)
3 years ago
Felix von Leitner 626a424607 remove some warnings in unit tests
catch impossible buffer in bs_init_membuf
3 years ago
Felix von Leitner da34bb9603 add "make check" target and make it work :) 3 years ago
Felix von Leitner 835476466a fix unit tests 3 years ago
Felix von Leitner 5ce2f8743c make unit tests self contained 3 years ago
Felix von Leitner 671b6ed25e add prs_readblob (no unit tests yet) 3 years ago
Felix von Leitner c8b8fbe93b add and use bs_capacityassert 3 years ago
Felix von Leitner 04f6a50952 add asciiz parsing 3 years ago
Felix von Leitner 6c1276294d add buffer_peekc 3 years ago
Felix von Leitner e1484560e8 add a few helpers for parsing binary data 3 years ago
Felix von Leitner ee6c774c98 give __readmem__ its own #ifndef 3 years ago
Felix von Leitner 966c3f4d2f add byte_start, byte_starts
add a man page for byte_equal_notimingattack
3 years ago
Felix von Leitner f56460eebc first_deferred actually needs to be extern all the time, not just
my_extern
3 years ago
Felix von Leitner 0d817b6e57 add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1 3 years ago
Felix von Leitner 39587d0c14 fmt_copybytes and fmt_copybytes_sizeof_minus1 now follow the dest==NULL
convention
3 years ago
Felix von Leitner 85dfa44135 add fmt_copybytes_sizeof_minus1 3 years ago
Felix von Leitner 1b2e166e79 add fmt and scan versions of uint* 3 years ago
Felix von Leitner 6567d89ac0 add static analyzer targets 3 years ago
Felix von Leitner e69ffa426f fix memory leak in error path 3 years ago