This website works better with JavaScript.
75fe9a620e
attempt to prevent future endless loops in io_wait half-closed fd cleanup
leitner
2021-02-16 15:50:38 +0000
e2673d3782
add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf
leitner
2021-01-03 23:15:28 +0000
68a04bf226
document changes
leitner
2020-12-07 17:54:40 +0000
5259ce9092
you need to #include <stdlib.h>
leitner
2020-12-07 17:53:46 +0000
47043a16a8
add fmt_strm_malloc
leitner
2020-12-07 17:53:24 +0000
b6195a540a
add man page for fmt_strm_alloca and fmt_strm_malloc
leitner
2020-12-07 17:53:13 +0000
dda1b00937
mmap_private opens the file for reading, not for writing
leitner
2020-12-07 15:00:54 +0000
35e3a2fdb5
more cross references for open_*
leitner
2020-12-07 14:57:16 +0000
b0306a795d
correct file open mode for mmap_private man page
leitner
2020-12-07 14:20:57 +0000
cf69bb3ac1
more cross references
leitner
2020-12-07 14:20:04 +0000
fa2eeedcfa
update dependencies, use $(AR) and $(RANLIB)
leitner
2020-12-01 13:50:02 +0000
e7358e888e
forward changes made in prototypes to actual implementation
leitner
2020-11-20 13:42:58 +0000
ebb3086b5c
buffer_seek did not work at all m(
leitner
2020-11-14 17:34:21 +0000
91c02ad365
undo fatfinger
leitner
2020-11-14 17:21:58 +0000
6ca4390c8e
also advance cur if upstream is a bytestream or an iobuf
leitner
2020-11-14 17:09:49 +0000
93a13274e0
also increment cur in bs_skip if upstream is not a memory buffer
leitner
2020-11-14 16:53:54 +0000
b67a1af443
only use writev for larger chunks in buffer_putflush only use lseek if it saves a read in buffer_seek
leitner
2020-11-10 21:51:22 +0000
45f7a362e0
abort loop if EOF
leitner
2020-11-10 21:23:45 +0000
ddfdd4d077
add compiler.h to abstract gcc attributes
leitner
2020-11-08 00:29:35 +0000
51869a80f8
also set upstream to error state
leitner
2020-11-01 20:15:32 +0000
235dfb18cd
add bs_seterrorstate
leitner
2020-11-01 15:16:16 +0000
606a282145
also install parse.h
leitner
2020-10-30 21:39:46 +0000
b3b68521ef
buffer_seek is no longer limited to the current buffer contents add automated way to run unit test: make check add parse.h add bytestream abstraction for parsing data from a buffer or a file
leitner
2020-10-30 20:54:08 +0000
302026f1b2
add functions for capacity checking and to skip bytes
leitner
2020-10-30 19:50:06 +0000
03feeb7ef2
make check can now run in parallel
leitner
2020-10-30 19:46:30 +0000
f63eb1d9c5
move bs_err into own C file
leitner
2020-10-30 15:35:53 +0000
acee16d884
add unit tests for bs_capacitycheck (same as for bs_capacityassert basically)
leitner
2020-10-30 15:18:37 +0000
4f66a05d0b
remove some warnings in unit tests catch impossible buffer in bs_init_membuf
leitner
2020-10-30 15:06:17 +0000
7ce1c93d0f
add "make check" target and make it work :)
leitner
2020-10-30 14:50:42 +0000
fbb1a69c9c
fix unit tests
leitner
2020-10-30 14:39:49 +0000
3128a340ac
make unit tests self contained
leitner
2020-10-30 14:36:05 +0000
4df5ee1bf3
add prs_readblob (no unit tests yet)
leitner
2020-10-30 12:52:15 +0000
3fff3ae6db
add and use bs_capacityassert
leitner
2020-10-30 12:13:05 +0000
9ddab2153f
add asciiz parsing
leitner
2020-10-30 01:27:19 +0000
50ceb217ab
add buffer_peekc
leitner
2020-10-30 00:26:41 +0000
32cafc2b80
add a few helpers for parsing binary data
leitner
2020-10-29 23:25:54 +0000
48f36eb580
give __readmem__ its own #ifndef
leitner
2020-10-27 20:43:09 +0000
32eb43f99c
add byte_start, byte_starts add a man page for byte_equal_notimingattack
leitner
2020-10-22 20:43:13 +0000
48f7fea2c1
first_deferred actually needs to be extern all the time, not just my_extern
leitner
2020-08-10 01:40:40 +0000
58160829b4
add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1
leitner
2020-07-14 19:55:38 +0000
567cfbb96a
fmt_copybytes and fmt_copybytes_sizeof_minus1 now follow the dest==NULL convention
leitner
2020-07-14 19:49:39 +0000
818712d067
add fmt_copybytes_sizeof_minus1
leitner
2020-07-14 19:46:35 +0000
94ebb21f87
add fmt and scan versions of uint*
leitner
2020-07-14 18:11:59 +0000
adea4281a7
add static analyzer targets
leitner
2020-07-14 16:08:26 +0000
1544cf006c
fix memory leak in error path
leitner
2020-07-14 16:08:08 +0000
2389a150ac
add errmsg documentation
leitner
2020-07-14 16:07:30 +0000
19c65ab54f
fix two complaints by clang's static analyzer
leitner
2020-06-16 12:40:57 +0000
69c9d1454d
port the epoll optimizations to kqueue, hopefully repairing it in the process
leitner
2020-05-15 11:42:53 +0000
9d51f000ef
silence another compiler warning
leitner
2020-05-14 14:48:40 +0000
bbaf63c7fd
remove compiler warnings in ent try to fix io_waituntil2 on freebsd
leitner
2020-05-14 14:46:31 +0000
dc69bc24ec
escape </script> in fmt_jsonescape
leitner
2020-05-07 12:08:38 +0000
99a29eaf6b
don't assume memory allocations will succeed
leitner
2020-05-05 12:39:19 +0000
751bb5bb66
try to work with gcc 8.3, too
leitner
2020-04-17 07:50:37 +0000
aa285bfd1b
remove failing assert that failed build
leitner
2020-04-16 17:33:09 +0000
50c1daf653
use _Static_assert if available
leitner
2020-04-08 11:37:31 +0000
8b0450cd29
some old glibc may define MSG_ZEROCOPY but not SO_ZEROCOPY :-(
leitner
2020-04-05 20:19:25 +0000
261420b7b6
the glibc case of the new __writememsz__ and friends macros broke
leitner
2020-04-05 20:19:11 +0000
8a8109f27e
support gcc 10's access attribute when compiling with dietlibc
leitner
2020-04-01 17:10:26 +0000
8bf1af6122
make mmap_private on Windows work on read-only files, too
leitner
2019-05-07 16:18:59 +0000
71f52a7148
add some comments
leitner
2019-04-27 09:28:40 +0000
6a71cd9a91
add libowfat/ to includes
leitner
2019-04-27 09:15:53 +0000
77a2bbd17a
half-hearted improvements to Windows compilability
leitner
2019-04-23 13:25:26 +0000
3aef1c2faa
half-hearted Windows compilability improvements
leitner
2019-04-23 13:22:07 +0000
278a675a69
bsd fix
leitner
2019-02-21 12:43:06 +0000
14df96bc34
less warnings
leitner
2019-02-21 12:39:44 +0000
5c7270190b
scan_utf8_sem
leitner
2019-02-21 12:38:12 +0000
9e07364ad3
another attempt
leitner
2019-02-21 12:33:37 +0000
7bb7679563
make headers fix for bsd make
leitner
2019-02-21 12:31:59 +0000
97368fbfa6
BSD build fix (hopefully) move more #include to <libowfat/...>
leitner
2019-02-21 12:24:05 +0000
dbd1f990c8
be less restrictive (RFC says NUL CR and LF need to be escaped)
leitner
2018-12-14 22:21:53 +0000
421df2174c
systems without fastopen support return EPIPE
leitner
2018-12-14 13:54:26 +0000
27331bbc10
version bump
leitner
2018-10-02 10:28:54 +0000
fa9c86e8d8
update Makefile
leitner
2018-10-02 09:59:34 +0000
533195b16f
add unit test
leitner
2018-09-30 19:29:22 +0000
8714ae112d
mention that the str_copy return value does not include the \0 add unit test
leitner
2018-09-30 19:27:16 +0000
2d78cb8406
fix unit test for fmt_escapecharc add unit tests for fmt_xmlescape
leitner
2018-09-30 19:18:35 +0000
c857c95f06
s/write/writev/
leitner
2018-09-24 22:38:10 +0000
50a03e6b6f
add make pic
leitner
2018-08-24 12:00:46 +0000
1137831ddd
make fastopen fall back to connect if len==0
leitner
2018-07-09 21:01:37 +0000
3873bab74b
add stralloc_APPEND use atomic updates for iom->working
leitner
2018-04-11 14:12:50 +0000
a8fa432152
minimal demonstrator program for iom api
leitner
2018-03-27 02:48:47 +0000
ce595ae0cc
add experimental iom API for multithreaded I/O multiplexing (in io.h)
leitner
2018-03-27 02:23:00 +0000
b3bccb9d88
#include_next no longer needed
leitner
2018-03-26 22:43:20 +0000
94feba3667
use write in buffer_put for a slight perf improvement
leitner
2018-03-12 13:04:30 +0000
d4d9b091ef
add rmdir
leitner
2018-03-05 10:00:50 +0000
708e34ab7f
don't escape poop emoji (emit as utf8 instead) if input is not valid utf8, encode each invalid byte as utf8 in output
leitner
2018-02-02 18:16:09 +0000
112ccf19e7
zero-terminate utf8 strings in ent
leitner
2018-02-02 17:43:25 +0000
ed67042965
undo freebsd fix, does not compile
leitner
2017-12-17 10:39:45 +0000
2cc0eec6cc
#define _POSIX_SOURCE for FreeBSD
leitner
2017-12-17 10:23:48 +0000
3b44408747
jsonescape
leitner
2017-12-17 10:05:51 +0000
30952a7e96
wtf
leitner
2017-12-17 10:01:19 +0000
b1d44d62dd
update Makefile
leitner
2017-12-17 09:51:16 +0000
2aceb52138
remove warning
leitner
2017-11-24 17:22:40 +0000
e4a2f4d068
compile if MSG_ZEROCOPY is not defined by libc
leitner
2017-11-24 17:21:10 +0000
f8c4132df0
add MSG_ZEROCOPY support (only used for buffers >8k)
leitner
2017-11-15 14:09:26 +0000
2bb35a6106
support __builtin_swap16 and __builtin_swap32
leitner
2017-11-15 14:09:06 +0000
e0ee49ba2e
fix fmt_ip6 (Erwin Hoffmann)
leitner
2017-08-11 14:41:56 +0000
5a803f3e7c
update man pages
leitner
2017-08-07 19:25:09 +0000
61db2acee6
no :: at the end if it's only :0
leitner
2017-08-07 19:24:19 +0000
a4a2aed3de
fmt_ip6 was violating rfc5952 section 4.2.2
leitner
2017-08-06 21:43:09 +0000