212 Commits (4a3dadafa85a03330f1f7263f5f27ef2c3f466a1)

Author SHA1 Message Date
leitner 1f113d5623 remove unaligned memory access behind #ifdef i386 from uint*.h (compilers are now smart enough so they are no longer needed and they were technically undefined behavior so the sanitizer complained) 11 months ago
leitner b4ba06aee4 add C++ convenience overloads to uint*.h 1 year ago
leitner dbca5e9d5a be more C99 compliant (Florian Weimer) 2 years ago
leitner 0c12716977 version bump 2 years ago
leitner f2a990d28e add iob_write2 with sendfile callback so caller can use OpenSSL's SSL_sendfile 2 years ago
leitner d93ddc33b8 fix buffer overread for len=0 in scan_longn (Martin Castillo) 3 years ago
leitner e2673d3782 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf 4 years ago
leitner 68a04bf226 document changes 4 years ago
leitner ddfdd4d077 add compiler.h to abstract gcc attributes 4 years ago
leitner b3b68521ef 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
4 years ago
leitner 32eb43f99c add byte_start, byte_starts
add a man page for byte_equal_notimingattack
4 years ago
leitner 27331bbc10 version bump 6 years ago
leitner c857c95f06 s/write/writev/ 6 years ago
leitner ce595ae0cc add experimental iom API for multithreaded I/O multiplexing (in io.h) 7 years ago
leitner 94feba3667 use write in buffer_put for a slight perf improvement 7 years ago
leitner f8c4132df0 add MSG_ZEROCOPY support (only used for buffers >8k) 7 years ago
leitner e0ee49ba2e fix fmt_ip6 (Erwin Hoffmann) 7 years ago
leitner da2a8332fe move headers to <libowfat/> upon install 8 years ago
leitner b4c4eb607e remove OpenBSD #warning (obsd maintainer says no longer needed) 8 years ago
leitner 3039d04915 version bump 8 years ago
leitner 6aa0e5f643 document a few more changes 8 years ago
leitner f973d7f4ab add mmap_readat (like mmap_read but open by fd, not by name) 8 years ago
leitner 137b80ea74 test for pread and use it instead of lseek+read in cdb and io_mmapwritefile 9 years ago
leitner fb6c39be63 special case buffer_get_token with token length 1 through memccpy (almost 4x speedup) 9 years ago
leitner 3dff6a2630 bump version 10 years ago
leitner 8a6186ba03 add critbit 10 years ago
leitner 79f534ffdf SECURITY: fix botched integer overflow handling logic in stralloc_ready (Giorgio) 10 years ago
leitner 6e022f98c9 ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney) 10 years ago
leitner 35f5a9692a if SOCK_NONBLOCK is defined, use it instead of socket+fcntl 10 years ago
leitner a255cebc57 mmap_read/mmap_shared on zero length files no longer fail but return a
zero length buffer
10 years ago
leitner ed93e203a1 more constness for stralloc and buffer 10 years ago
leitner 4fa4a524d2 add io_fd_flags so the caller can tell io_fd whether the socket is blocking
(saves one fcntl syscall)
10 years ago
leitner 3885650d81 on Linux, in iob_send, if MSG_MORE is defined, and the request type
lends itself to it, used sendto/sendmsg with MSG_MORE instead of
    TCP_CORK (saves two syscalls)
10 years ago
leitner 88167b5ce1 add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack 10 years ago
leitner 8bdf66a1f5 add scan_html_tagarg 10 years ago
leitner 0aa50a19a4 add fmt_html_tagarg, fmt_xml 10 years ago
leitner 7c5d119f9a fix buffer_get 10 years ago
leitner 39e7ee90bb introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 11 years ago
leitner a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
11 years ago
leitner c608502cd8 add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 11 years ago
leitner f7fee036c1 SECURITY: check for integer overflow in stralloc_ready 11 years ago
leitner 18afec7d68 scan_*longlong now properly abort if the number would not fit 11 years ago
leitner dd4f86fbfa add some unit tests for the formatting routines 11 years ago
leitner 875c0dc491 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
11 years ago
leitner 37013d414b add compiletimeassert.h 12 years ago
leitner f7606283c8 add byte_equal_notimingattack 13 years ago
leitner 852608b829 add awesome hack in isset.h (comex, Linus Torvalds) 13 years ago
leitner e175800a8c add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
13 years ago
leitner faa5bad9fc fix io_receivefd so the incoming buffer is only 1 byte; io_passfd
sends only one byte, so we might receive (and discard) other data if
    we try to read more (Stefan Bühler, from the lightttpd project)
14 years ago
leitner b4469f1ed8 support SCTP in addition to TCP 15 years ago