Commit Graph

175 Commits (aedf1016c1864856b6a98054cb99e93e656c61f9)

Author SHA1 Message Date
Felix von Leitner d8da202a8b introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 2014-06-05 20:43:01 +00:00
Felix von Leitner 68f5b64189 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
Felix von Leitner ba77fcc8ba add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 2014-03-15 22:24:14 +00:00
Felix von Leitner 765d88a76d SECURITY: check for integer overflow in stralloc_ready 2014-03-14 18:56:07 +00:00
Felix von Leitner 823f052cbd scan_*longlong now properly abort if the number would not fit 2014-03-14 01:33:03 +00:00
Felix von Leitner f03d88a4c7 add some unit tests for the formatting routines 2014-02-25 18:59:20 +00:00
Felix von Leitner addc8cd318 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
2013-09-09 18:52:29 +00:00
Felix von Leitner 830241e86d add compiletimeassert.h 2013-02-22 11:00:32 +00:00
Felix von Leitner c5a5c2d6bf add byte_equal_notimingattack 2012-05-16 18:02:30 +00:00
Felix von Leitner 9b249f6fa7 add awesome hack in isset.h (comex, Linus Torvalds) 2012-04-17 21:26:31 +00:00
Felix von Leitner 3743706899 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
Felix von Leitner 100ac91c79 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
Felix von Leitner 71b6e8fa00 support SCTP in addition to TCP 2010-01-18 19:49:03 +00:00
Felix von Leitner 233649d680 add iarray 2009-03-12 21:32:43 +00:00
Felix von Leitner 97161ed0df add buffer_tosa (buffer writing to auto-growing stralloc) 2009-02-28 00:07:55 +00:00
Felix von Leitner 4243bd22ec save 8 bytes in taia.h for 64-bit systems 2009-02-15 01:02:15 +00:00
Felix von Leitner a4a7ba2f11 version bump 2008-11-15 16:14:19 +00:00
Felix von Leitner 6dda2ae244 byte_zero is also miscompiled by gcc 4.3.2 2008-10-25 21:21:46 +00:00
Felix von Leitner 6d98b442ab some valgrind de-noising
fix subtle typo in sub_of (David Sirovsky)
2008-02-27 12:10:05 +00:00
Felix von Leitner b8a94d5b7b add uint64 pack and unpack routines 2008-01-13 21:40:24 +00:00
Felix von Leitner 7dd128e089 0.28 2007-12-18 14:32:55 +00:00
Felix von Leitner 5e8d303443 catch one more case in umult64 (Tomi Jylhä-Ollila) 2007-12-15 19:45:48 +00:00
Felix von Leitner c173ad3273 add socket_deferaccept 2007-11-02 00:39:51 +00:00
Felix von Leitner 17d867ddb6 add iob_addbuf_munmap 2007-10-17 13:06:56 +00:00
Felix von Leitner 1c8ffa9021 add fmt_strm 2007-10-09 13:49:26 +00:00
Felix von Leitner 6d718ded41 version bump 2007-08-24 21:36:29 +00:00
Felix von Leitner dc6ea1902b fmt_xlonglong was utterly broken (Johannes Vetter) 2007-08-01 00:10:37 +00:00
Felix von Leitner fd63810d89 try to catch malicious input in textcode fmt_* functions 2007-06-28 21:00:40 +00:00
Felix von Leitner 0f90f8eb71 escape more in fmt_ldapescape 2007-06-28 20:01:05 +00:00
Felix von Leitner 2fd48c7e57 use inttypes.h to declare ints in uint*.h 2007-06-28 13:38:08 +00:00
Felix von Leitner 7109a42c30 fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov) 2007-03-04 13:13:19 +00:00
Felix von Leitner b5c41baade add some int overflow check macros to rangecheck.h 2007-01-26 01:12:15 +00:00
Felix von Leitner f064289d07 fix really pathological case where io_timeouted would never
start over from the beginning because always new accept()ed
    connections came in and got newer, higher descriptors since the last
    io_timeouted loop.  (Dirk Engling)
2007-01-24 18:28:39 +00:00
Felix von Leitner f355b0b098 version bump 2007-01-12 02:15:57 +00:00
Felix von Leitner 51609b5628 add iob_bytesleft
don't leak memory in test/httpd.c
2006-12-19 13:19:32 +00:00
Felix von Leitner 0698149baf switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
Felix von Leitner d1aef8af83 add asm versions of imult64 and umult64 for x86_64
(22 cycles -> 12 cycles on my Athlon 64)
2006-08-27 13:57:06 +00:00
Felix von Leitner 56fb0a586d fix for NetBSD 3.0 (they broke their sys/types.h)
remove support for ip6.int reverse lookup in DNS routines (the domain is
no longer delegated)
2006-06-23 03:53:16 +00:00
Felix von Leitner 071df9ee4a make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
Felix von Leitner 132a7ca159 document adding io_block
add rangecheck install target to GNUmakefile
cosmetics in rangecheck.h
2006-04-17 05:09:39 +00:00
Felix von Leitner dcbc90e2c6 add rangecheck.h 2006-04-17 04:33:40 +00:00
Felix von Leitner 03806dc0c8 add cdb 2005-11-25 15:02:31 +00:00
Felix von Leitner 97f3315947 add taia_half 2005-10-14 15:37:19 +00:00
Felix von Leitner c89e6b4fcc implement Nikola's idea to remove limit number of strings in errmsg 2005-10-14 15:33:21 +00:00
Felix von Leitner 2e87886163 further Windoze support (test/io5.c works, gatling still doesn't)
This is just to get gatling to work, I may remove it again after
    that.
2005-09-09 22:12:23 +00:00
Felix von Leitner 4653054e12 add -D_REENTRANT to CFLAGS so libowfat can be used in multi-threaded
programs
2005-09-02 21:11:58 +00:00
Felix von Leitner 16168a5610 document changes 2005-08-24 19:22:06 +00:00
Felix von Leitner 93eb7241aa version dump 2005-08-09 18:14:10 +00:00
Felix von Leitner 237ff729b3 turns out the imult routines (which I never used) were incorrect.
Noted by Matthew Dempsky
  open_* from open.h now open in large file mode
2005-07-15 20:57:07 +00:00
Felix von Leitner ee33cae46a document kludge 2005-07-01 19:30:52 +00:00