Felix von Leitner
f03d88a4c7
add some unit tests for the formatting routines
2014-02-25 18:59:20 +00:00
Felix von Leitner
4381f7c6a2
get rid of some compiler warnings
2014-02-25 18:39:59 +00:00
Felix von Leitner
e1d937c67b
if called with srclen > maxlen, return maxlen not srclen
2014-02-25 18:36:36 +00:00
Felix von Leitner
31ce8647fe
if srclen>maxlen, truncate at maxlen
2014-02-25 18:28:06 +00:00
Felix von Leitner
29b9860a37
fmt_strn aborted one byte too late
2014-02-25 18:27:30 +00:00
Felix von Leitner
041e6c5a92
| not +
2014-02-25 17:51:29 +00:00
Felix von Leitner
0482a9ec04
add json encoding routines to textcode
2014-01-28 16:12:39 +00:00
Felix von Leitner
0abea6af07
fix dependencies
2013-10-12 13:50:08 +00:00
Felix von Leitner
212f499313
hopefully this fixes the looping gatling processes
2013-10-01 23:15:51 +00:00
Felix von Leitner
91b2116a38
add scan_netstring
2013-09-09 22:09:07 +00:00
Felix von Leitner
825f9ee219
add scan_ulongn, scan_8longn, scan_xlongn and scan_longn
2013-09-09 20:57:58 +00:00
Felix von Leitner
a5dc55208a
add man pages for buffer_from*
2013-09-09 19:19:52 +00:00
Felix von Leitner
ba62b9d96f
add buffer_fromarray, buffer_frombuf
2013-09-09 19:03:52 +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
b12538cc97
fix compile error
2013-09-09 18:51:24 +00:00
Felix von Leitner
fd46d3afc1
add tryuing128.c and ignore haveuint128.h
2013-08-22 23:45:52 +00:00
Felix von Leitner
395dd4c416
make first argument to mmap_unmap const
2013-08-22 23:42:46 +00:00
Felix von Leitner
b2eb079c02
add better comments
...
add fmt_copybytes
2013-08-22 23:41:37 +00:00
Felix von Leitner
ba201f6105
define UNALIGNED_ACCESS_OK on x86
2013-08-22 23:38:08 +00:00
Felix von Leitner
20448ccdd8
add haveuint128.h
2013-08-22 23:37:09 +00:00
Felix von Leitner
28180795a9
add more examples
2013-08-22 23:35:34 +00:00
Felix von Leitner
830241e86d
add compiletimeassert.h
2013-02-22 11:00:32 +00:00
Felix von Leitner
74a13126d5
add cast so the file compiles in c++ mode too
2012-09-27 01:46:12 +00:00
Felix von Leitner
babeb35b1f
catch more bad encoding
2012-09-12 20:20:42 +00:00
Felix von Leitner
fe4e8dab35
minor update
2012-08-18 01:31:21 +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
bc5fa9c946
fix endless loop bug on freebsd
2012-03-19 02:38:52 +00:00
Felix von Leitner
d3b996c7ce
add trivial compare-and-swap test
2012-02-24 02:26:29 +00:00
Felix von Leitner
e7a4283ec6
fix return value
2012-02-24 02:26:11 +00:00
Felix von Leitner
33e2bbfd34
win32 cross compile fix for iarray
2012-02-24 02:01:27 +00:00
Felix von Leitner
f3bbb827d2
document the return value expected from the callback given to iob_write
...
remove unused #include in iob_reset
if iob_addfile_close fails, it now closes the fd
if iob_addbuf_munmap fails, it now munmaps the buf
if iob_addbuf_free fails, it now frees the buf
some win32 cross-compile fixes for iarray
2012-02-24 02:00:52 +00:00
Felix von Leitner
cf46170dc7
make headers work in C++
...
add two more variable length integer encoding functions
2012-02-07 17:02:40 +00:00
Felix von Leitner
24c6e42b3c
add functions to encode and decode integers in variable length binary
...
formats
2012-02-06 07:59:56 +00:00
Felix von Leitner
7a942eb82a
add functions to encode and decode variable length integers in binary
2012-02-06 07:55:48 +00:00
Felix von Leitner
3506fbf4de
accept -3 as error return from the callback, too
2012-01-20 19:19:49 +00:00
Felix von Leitner
1a12d26ebc
mingw compile fix
2012-01-13 03:20:32 +00:00
Felix von Leitner
cab6090eb7
the iob calls return int, not void
2012-01-13 02:25:31 +00:00
Felix von Leitner
cf3c05d704
socket_remote4 does not need havescope.h
2011-09-16 03:11:43 +00:00
Felix von Leitner
77b72218f4
change macros to inline functions to get rid of gcc warning
2011-04-28 14:31:55 +00:00
Felix von Leitner
ea5ded0681
change macros to inline functions to get rid of strict aliasing gcc
...
warnings in code using them
2011-04-28 14:28:53 +00:00
Felix von Leitner
4f4e6cd650
new makefile
2011-02-24 18:10:36 +00:00
Felix von Leitner
13bc4b6987
add __likely branch prediction hints
...
make inlining work in the face of gcc in non-gnu c99 mode
2010-11-05 03:07:47 +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
0305cf80fb
only try to receive one byte to avoid discarding data
2010-10-06 17:33:25 +00:00
Felix von Leitner
d702d06774
for installed header files, add comment saying where they came from
2010-06-03 22:46:59 +00:00
Felix von Leitner
efbb246c4d
#include <errno.h>
2010-01-28 21:40:03 +00:00
Felix von Leitner
a96b23073c
get rid of warning
2010-01-19 02:44:06 +00:00
Felix von Leitner
a16a09c0eb
update Makefile for bsd
2010-01-19 02:41:34 +00:00