leitner
51869a80f8
also set upstream to error state
4 years ago
leitner
235dfb18cd
add bs_seterrorstate
4 years ago
leitner
302026f1b2
add functions for capacity checking and to skip bytes
4 years ago
leitner
03feeb7ef2
make check can now run in parallel
4 years ago
leitner
f63eb1d9c5
move bs_err into own C file
4 years ago
leitner
acee16d884
add unit tests for bs_capacitycheck (same as for bs_capacityassert
...
basically)
4 years ago
leitner
4f66a05d0b
remove some warnings in unit tests
...
catch impossible buffer in bs_init_membuf
4 years ago
leitner
3128a340ac
make unit tests self contained
4 years ago
leitner
4df5ee1bf3
add prs_readblob (no unit tests yet)
4 years ago
leitner
3fff3ae6db
add and use bs_capacityassert
4 years ago
leitner
9ddab2153f
add asciiz parsing
4 years ago
leitner
50ceb217ab
add buffer_peekc
4 years ago
leitner
32cafc2b80
add a few helpers for parsing binary data
4 years ago
leitner
2389a150ac
add errmsg documentation
5 years ago
leitner
94feba3667
use write in buffer_put for a slight perf improvement
7 years ago
leitner
760598ec2f
#include <foo.h> -> #include <libowfat/foo.h>
8 years ago
leitner
6cd198cb98
remove unnecessary x86intrin.h include
8 years ago
leitner
a1f1986247
include <foo> -> include "foo"
9 years ago
leitner
9cfa19396e
special case buffer_get_token with token length 1 through memccpy
9 years ago
leitner
774a4b6714
add unistd.h
9 years ago
leitner
685ebdfb80
oops, did not actually flush the buffer
9 years ago
leitner
a0cde0fee9
slight optimization for buffer_flush
9 years ago
leitner
695843c79e
small buffer optimization
...
fix botched noipv6 case in buffer_tcp6
10 years ago
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)
10 years ago
leitner
ed93e203a1
more constness for stralloc and buffer
10 years ago
leitner
7c5d119f9a
fix buffer_get
10 years ago
leitner
8b3eb0be7c
documented wrong return type
10 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
cf3dc34288
actually increase stralloc.len
11 years ago
leitner
53e2af7389
never close fd 0, 1 or 2 in buffer_close
11 years ago
leitner
4a04c40595
get rid of more -Wconversion warnings
11 years ago
leitner
ee4a2c0cdb
add man pages for buffer_from*
11 years ago
leitner
24d8e81116
add buffer_fromarray, buffer_frombuf
11 years ago
leitner
bb1bebe517
stralloc* not const char*
16 years ago
leitner
1e549e9ee2
add man page
16 years ago
leitner
02818883df
add buffer_tosa (buffer writing to auto-growing stralloc)
16 years ago
leitner
3004b518ef
switch to size_t and ssize_t
18 years ago
leitner
83bf636b86
add RETURN VALUE section
19 years ago
leitner
25c57a0b1b
implement Nikola's idea to remove limit number of strings in errmsg
19 years ago
leitner
636cfb70b0
make sure buffer_get tries to get all the bytes it was asked for
20 years ago
leitner
eeffc36387
remove even more warnings
...
64-bit cleanliness issue with auto-NULL-appending macros
20 years ago
leitner
6196f771cd
remove a few gcc 4 warnings
...
work around freebsd 5.4 brokenness (if you don't have IPv6 in the
kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
but TCP? never heard of it")
20 years ago
leitner
c874604f12
gcc 4 cleanups (mostly unsigned char* vs char*)
20 years ago
leitner
20c994bf59
fix a few man pages
20 years ago
leitner
9eb09b5bfe
add iob_free and man page for iob_reset.
...
check in some windoze compat crap (still does not compile through for
windoze)
20 years ago
leitner
34df761a0a
add buffer_mmapread
20 years ago
leitner
b617d63d1e
update dependencies
...
add errmsg_info and msg
20 years ago
leitner
77c5e333db
signal EOF properly
20 years ago
leitner
b48ce77792
add iob_write (to write an io batch through a callback)
20 years ago
leitner
ccba2abe9b
add RETURN VALUE to man page
20 years ago