e370888264
Sadly, this just sends it to purgatory. It's still around for the socketpair() emulation and the nanosleep() emulation. socketpair() obviously only selects() on 2 FDs, so not a huge deal. nanosleep() only uses it for the timeout, so also not a huge deal. socketpair() is SUSv3 (2001) and nanosleep() is SUSv2 (1997), so maybe it's OK to remove those emulations. If so, then we can also remove the sys/select.h check in configure.ac |
||
---|---|---|
.. | ||
include | ||
src | ||
acinclude.m4 | ||
autogen.sh | ||
configure.ac | ||
COPYING | ||
CREDITS | ||
install-sh | ||
librb.pc.in | ||
Makefile.am | ||
README.md | ||
TODO |
librb
This is based on libratbox, the common runtime support code in ircd-ratbox. It has significant modifications and is no longer compatible with libratbox itself (nor can be used as a dropin replacement), so we renamed it.
original libratbox notes
- Most of this code isn't anywhere near threadsafe at this point. Don't hold your breath on this either.
- The linebuf code is designed to deal with pretty much 512 bytes per line and that is it. Anything beyond that length unless in raw mode, gets discard. For some non-irc purposes, this can be a problem, but for ircd stuff its fine.
- The helper code when transmitting data between helpers, the same 512 byte limit applies there as we recycle the linebuf code for this.