195 Commits

Author SHA1 Message Date
leitner
da2a8332fe move headers to <libowfat/> upon install 2017-03-13 11:11:59 +00:00
leitner
b4c4eb607e remove OpenBSD #warning (obsd maintainer says no longer needed) 2016-10-11 11:45:46 +00:00
leitner
3039d04915 version bump 2016-10-01 15:40:16 +00:00
leitner
6aa0e5f643 document a few more changes 2016-10-01 15:22:17 +00:00
leitner
f973d7f4ab add mmap_readat (like mmap_read but open by fd, not by name) 2016-10-01 15:15:44 +00:00
leitner
137b80ea74 test for pread and use it instead of lseek+read in cdb and io_mmapwritefile 2016-06-23 19:42:13 +00:00
leitner
fb6c39be63 special case buffer_get_token with token length 1 through memccpy (almost 4x speedup) 2015-12-17 16:25:08 +00:00
leitner
3dff6a2630 bump version 2015-04-09 20:26:12 +00:00
leitner
8a6186ba03 add critbit 2015-04-09 19:05:32 +00:00
leitner
79f534ffdf SECURITY: fix botched integer overflow handling logic in stralloc_ready (Giorgio) 2015-04-09 18:23:23 +00:00
leitner
6e022f98c9 ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney) 2015-03-20 03:34:37 +00:00
leitner
35f5a9692a if SOCK_NONBLOCK is defined, use it instead of socket+fcntl 2015-03-17 00:01:00 +00:00
leitner
a255cebc57 mmap_read/mmap_shared on zero length files no longer fail but return a
zero length buffer
2015-03-02 21:25:57 +00:00
leitner
ed93e203a1 more constness for stralloc and buffer 2015-02-04 02:57:56 +00:00
leitner
4fa4a524d2 add io_fd_flags so the caller can tell io_fd whether the socket is blocking
(saves one fcntl syscall)
2014-10-09 09:02:28 +00:00
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)
2014-10-07 13:47:19 +00:00
leitner
88167b5ce1 add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack 2014-10-07 11:40:21 +00:00
leitner
8bdf66a1f5 add scan_html_tagarg 2014-09-17 13:58:59 +00:00
leitner
0aa50a19a4 add fmt_html_tagarg, fmt_xml 2014-09-16 15:41:35 +00:00
leitner
7c5d119f9a fix buffer_get 2014-09-15 21:00:54 +00:00
leitner
39e7ee90bb introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 2014-06-05 20:43:01 +00:00
leitner
a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
2014-04-04 18:11:03 +00:00
leitner
c608502cd8 add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 2014-03-15 22:24:14 +00:00
leitner
f7fee036c1 SECURITY: check for integer overflow in stralloc_ready 2014-03-14 18:56:07 +00:00
leitner
18afec7d68 scan_*longlong now properly abort if the number would not fit 2014-03-14 01:33:03 +00:00
leitner
dd4f86fbfa add some unit tests for the formatting routines 2014-02-25 18:59:20 +00:00
leitner
875c0dc491 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
2013-09-09 18:52:29 +00:00
leitner
37013d414b add compiletimeassert.h 2013-02-22 11:00:32 +00:00
leitner
f7606283c8 add byte_equal_notimingattack 2012-05-16 18:02:30 +00:00
leitner
852608b829 add awesome hack in isset.h (comex, Linus Torvalds) 2012-04-17 21:26:31 +00:00
leitner
e175800a8c add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
2012-04-10 21:15:51 +00:00
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)
2010-10-06 17:34:52 +00:00
leitner
b4469f1ed8 support SCTP in addition to TCP 2010-01-18 19:49:03 +00:00
leitner
bb9cdaaafb add iarray 2009-03-12 21:32:43 +00:00
leitner
02818883df add buffer_tosa (buffer writing to auto-growing stralloc) 2009-02-28 00:07:55 +00:00
leitner
1d76baf2ef save 8 bytes in taia.h for 64-bit systems 2009-02-15 01:02:15 +00:00
leitner
cef03a0cfe version bump 2008-11-15 16:14:19 +00:00
leitner
6d4c89ea72 byte_zero is also miscompiled by gcc 4.3.2 2008-10-25 21:21:46 +00:00
leitner
a8a5e9a3d5 some valgrind de-noising
fix subtle typo in sub_of (David Sirovsky)
2008-02-27 12:10:05 +00:00
leitner
58a07defd7 add uint64 pack and unpack routines 2008-01-13 21:40:24 +00:00
leitner
a38b7946a4 0.28 2007-12-18 14:32:55 +00:00
leitner
72eba9bf79 catch one more case in umult64 (Tomi Jylhä-Ollila) 2007-12-15 19:45:48 +00:00
leitner
22f88f6550 add socket_deferaccept 2007-11-02 00:39:51 +00:00
leitner
527efc70b6 add iob_addbuf_munmap 2007-10-17 13:06:56 +00:00
leitner
aa435fbee3 add fmt_strm 2007-10-09 13:49:26 +00:00
leitner
3c5ca2a2ad version bump 2007-08-24 21:36:29 +00:00
leitner
3c31c1a03b fmt_xlonglong was utterly broken (Johannes Vetter) 2007-08-01 00:10:37 +00:00
leitner
e0a6a1cb84 try to catch malicious input in textcode fmt_* functions 2007-06-28 21:00:40 +00:00
leitner
1b17f47def escape more in fmt_ldapescape 2007-06-28 20:01:05 +00:00
leitner
b03a0e8a66 use inttypes.h to declare ints in uint*.h 2007-06-28 13:38:08 +00:00