762 Commits

Author SHA1 Message Date
leitner
9b2377c4be fix operator precedence 2015-12-15 14:11:35 +00:00
leitner
80a9933ff1 use static inline instead of extern inline 2015-12-04 12:11:57 +00:00
leitner
774a4b6714 add unistd.h 2015-11-23 01:56:23 +00:00
leitner
685ebdfb80 oops, did not actually flush the buffer 2015-11-19 13:43:57 +00:00
leitner
a0cde0fee9 slight optimization for buffer_flush 2015-11-19 13:06:15 +00:00
leitner
189d8bad1d darwin compat 2015-11-11 08:04:00 +00:00
leitner
f74f9b9b25 add socket_udp4b and socket_udp6b 2015-10-16 17:12:22 +00:00
leitner
32a312b8f1 add marshaling code for protocol buffers 2015-09-29 19:01:25 +00:00
leitner
6859c4b6ca add netstring formatter
fix scan_netstring to actually correctly return the length of the transported string
add documentation
2015-09-29 15:29:57 +00:00
leitner
fb1f19042f support gcc 5 builtins for multiplication overflow in safemult.h
fix copypasted comment in fmt_asn1dertag
add man pages for add_of, sub_of and assign
2015-09-29 14:42:40 +00:00
leitner
6cfc16fc40 add gcc 5 integer overflow intrinsics support to rangecheck.h
in the process, identify a gnarly problem that was not only not found by
  the test suite, there was a test testing for the wrong behavior!
2015-09-29 14:10:03 +00:00
leitner
7bdc1b29bb a few missing headers and minor fixes
fix corking behavior for the case where a buffer follows a buffer in
iob_send
2015-09-06 18:01:02 +00:00
leitner
cdecd16ab3 add documentation 2015-05-13 21:43:45 +00:00
leitner
e5865bcc52 fix timezone handling 2015-05-13 21:42:58 +00:00
leitner
ac6979e4af add scan_iso8601+test 2015-05-13 21:21:16 +00:00
leitner
ad5ce55281 add fmt_iso8601 2015-05-13 20:33:51 +00:00
leitner
695843c79e small buffer optimization
fix botched noipv6 case in buffer_tcp6
2015-04-23 15:15:08 +00:00
leitner
214ad3a92e use gcc magic and a #define to convert buffer_puts to buffer_put if the
string argument length is known at compile time (same for
buffer_putsflush)
2015-04-19 02:11:41 +00:00
leitner
fce165fdcb remove dead store 2015-04-10 23:15:59 +00:00
leitner
c523dcbc48 also install critbit.h
documentation clarification
2015-04-10 20:57:54 +00:00
leitner
1b3e55485b make critbit0_contains as pure 2015-04-09 23:35:40 +00:00
leitner
3dff6a2630 bump version 2015-04-09 20:26:12 +00:00
leitner
6d4c3850d6 update dependency 2015-04-09 19:06:39 +00:00
leitner
8a6186ba03 add critbit 2015-04-09 19:05:32 +00:00
leitner
42eb4c9830 use xz instead of bz2 in make tar 2015-04-09 18:28:03 +00:00
leitner
12caae78b2 cleaner make clean 2015-04-09 18:26:44 +00:00
leitner
10affedd80 update Makefile 2015-04-09 18:25:35 +00:00
leitner
79f534ffdf SECURITY: fix botched integer overflow handling logic in stralloc_ready (Giorgio) 2015-04-09 18:23:23 +00:00
leitner
d0e735e2c2 support noipv6 being set externally even when there is perfectly good
IPv6 support.
2015-03-20 14:58:13 +00:00
leitner
1856c8a2d7 damn it, fucked up the return value 2015-03-20 03:50:42 +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
38ea25fd9f more updates 2014-12-27 13:39:20 +00:00
leitner
3d9452738b better Makefile 2014-12-27 13:38:12 +00:00
leitner
f07562d857 add haveuint128.h as dependency to make dep 2014-11-01 20:52:48 +00:00
leitner
ba56a8c350 add havealloca as dependency to dep 2014-11-01 20:51:54 +00:00
leitner
c60c2425ce hopefully fix the infinite loop in gatling 2014-10-19 01:52:36 +00:00
leitner
193dfba16b remove compiler warning 2014-10-16 16:17:09 +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
7dadd4e7c3 get rid of io_starteventloop 2014-10-07 14:06:17 +00:00
leitner
c785fff258 update Makefile 2014-10-07 14:04:54 +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
953eb639b2 on Linux, save a few syscalls by using sendto/sendmsg with MSG_MORE
instead of write/writev + setsockopt TCP_CORK
2014-10-07 13:43:50 +00:00
leitner
a691887e75 forgot to check in the actual code m( 2014-10-07 11:40:43 +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
1d723c8da4 scan_html forgot to output '<' when it did not know the tag coming in 2014-09-17 13:43:54 +00:00
leitner
0aa50a19a4 add fmt_html_tagarg, fmt_xml 2014-09-16 15:41:35 +00:00