Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
Go to file
Felix von Leitner 6a1c199a99 $ make WERROR=-Werror now builds with -Werror
add some single char escaping routines to fmt.h
pull in html5 entities from w3c and use those to do a proper scan_html decoding
fix an off-by-one in fmt_to_array
add a ton of unit tests for the fmt routines
2014-03-13 22:25:20 +00:00
array win32 cross compile fix for iarray 2012-02-24 02:01:27 +00:00
buffer add man pages for buffer_from* 2013-09-09 19:19:52 +00:00
byte add byte_equal_notimingattack 2012-05-16 18:02:30 +00:00
case switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
cdb small man page updates and add a cdbget test 2007-04-30 05:08:28 +00:00
dns fix for NetBSD 3.0 (they broke their sys/types.h) 2006-06-23 03:53:16 +00:00
examples add a few examples 2005-10-04 11:42:02 +00:00
fmt $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
io hopefully this fixes the looping gatling processes 2013-10-01 23:15:51 +00:00
mmap make first argument to mmap_unmap const 2013-08-22 23:42:46 +00:00
mult fix for 32-bit archs 2008-12-26 01:56:42 +00:00
open fix man page for openreadclose 2008-06-24 14:19:17 +00:00
scan add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
socket mingw compile fix 2012-01-13 03:20:32 +00:00
str switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
stralloc fix warning 2007-11-02 00:45:52 +00:00
tai even more man pages 2002-09-16 23:49:15 +00:00
taia add taia_half 2005-10-14 15:37:19 +00:00
test $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
textcode $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
uint add uint64 pack and unpack routines 2008-01-13 21:40:24 +00:00
unix add/fix man pages 2010-01-18 19:51:00 +00:00
.cvsignore $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
CAS.h fix compile error 2013-09-09 18:51:24 +00:00
CHANGES add some unit tests for the formatting routines 2014-02-25 18:59:20 +00:00
COPYING Initial revision 2001-02-02 17:54:47 +00:00
GNUmakefile $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
Makefile $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
README mention my email address 2002-10-21 22:35:17 +00:00
TODO fix for NetBSD 3.0 (they broke their sys/types.h) 2006-06-23 03:53:16 +00:00
array.h make headers work in C++ 2012-02-07 17:02:40 +00:00
buffer.h add buffer_fromarray, buffer_frombuf 2013-09-09 19:03:52 +00:00
byte.h define UNALIGNED_ACCESS_OK on x86 2013-08-22 23:38:08 +00:00
case.h make headers work in C++ 2012-02-07 17:02:40 +00:00
cdb.h make headers work in C++ 2012-02-07 17:02:40 +00:00
cdb_make.h make headers work in C++ 2012-02-07 17:02:40 +00:00
compiletimeassert.h add compiletimeassert.h 2013-02-22 11:00:32 +00:00
dns.h make headers work in C++ 2012-02-07 17:02:40 +00:00
ent.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
entities.json $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
errmsg.h make headers work in C++ 2012-02-07 17:02:40 +00:00
errmsg_int.h add errmsg_int.h 2005-10-14 15:33:33 +00:00
fmt.h $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
iarray.h document the return value expected from the callback given to iob_write 2012-02-24 02:00:52 +00:00
io.h add io_fd_canwrite (like io_fd but assume the fd is writable) 2012-04-10 21:15:51 +00:00
io_internal.h make headers work in C++ 2012-02-07 17:02:40 +00:00
iob.h make headers work in C++ 2012-02-07 17:02:40 +00:00
iob_internal.h use callback based infrastructure to reset iob's 2007-10-17 13:25:44 +00:00
iopause.h1 for installed header files, add comment saying where they came from 2010-06-03 22:46:59 +00:00
iopause.h2 for installed header files, add comment saying where they came from 2010-06-03 22:46:59 +00:00
ip4.h make headers work in C++ 2012-02-07 17:02:40 +00:00
ip6.h make headers work in C++ 2012-02-07 17:02:40 +00:00
isset.h add awesome hack in isset.h (comex, Linus Torvalds) 2012-04-17 21:26:31 +00:00
likely.h add iarray 2009-03-12 21:32:43 +00:00
mmap.h make first argument to mmap_unmap const 2013-08-22 23:42:46 +00:00
ndelay.h make headers work in C++ 2012-02-07 17:02:40 +00:00
open.h make headers work in C++ 2012-02-07 17:02:40 +00:00
openreadclose.h make headers work in C++ 2012-02-07 17:02:40 +00:00
rangecheck.h make headers work in C++ 2012-02-07 17:02:40 +00:00
readclose.h make headers work in C++ 2012-02-07 17:02:40 +00:00
safemult.h make headers work in C++ 2012-02-07 17:02:40 +00:00
scan.h add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 2013-09-09 20:57:58 +00:00
select.h1 monster update: add tai, taia, iopause, case, and ipv6 enhanced dns 2002-09-16 01:09:56 +00:00
select.h2 more BSD compat 2003-09-06 00:03:27 +00:00
socket.h make headers work in C++ 2012-02-07 17:02:40 +00:00
str.h make headers work in C++ 2012-02-07 17:02:40 +00:00
stralloc.h make headers work in C++ 2012-02-07 17:02:40 +00:00
t.c add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
tai.h make headers work in C++ 2012-02-07 17:02:40 +00:00
taia.h make headers work in C++ 2012-02-07 17:02:40 +00:00
textcode.h add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
tryalloca.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trybsdsf.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trydevpoll.c broken lose32 port using mingw (don't use!!!) 2003-11-06 20:47:59 +00:00
tryepoll.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
tryinline.c work around compilers that don't understand "static inline" 2001-11-24 20:09:31 +00:00
tryip6.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trykqueue.c add epoll and kqueue tests 2003-09-06 00:52:11 +00:00
tryn2i.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trypoll.c monster update: add tai, taia, iopause, case, and ipv6 enhanced dns 2002-09-16 01:09:56 +00:00
tryscope.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trysendfile.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trysigio.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trysl.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trysocket.c $ make WERROR=-Werror now builds with -Werror 2014-03-13 22:25:20 +00:00
trysysel.c monster update: add tai, taia, iopause, case, and ipv6 enhanced dns 2002-09-16 01:09:56 +00:00
tryuint128.c add tryuing128.c and ignore haveuint128.h 2013-08-22 23:45:52 +00:00
uint16.h make headers work in C++ 2012-02-07 17:02:40 +00:00
uint32.h make headers work in C++ 2012-02-07 17:02:40 +00:00
uint64.h make headers work in C++ 2012-02-07 17:02:40 +00:00
va_narg.h for installed header files, add comment saying where they came from 2010-06-03 22:46:59 +00:00
windoze.h make headers work in C++ 2012-02-07 17:02:40 +00:00

README

libowfat is a library of general purpose APIs extracted from Dan
Bernstein's software, reimplemented and covered by the GNU General
Public License Version 2 (no later versions).

The API has been slightly extended (for example, I provide a uint32_read
function, and I extended the socket API to support IPv6) where I found
it necessary or beneficial in a specific project.

Many of the functions I implement here have since been placed in the
public domain, so there are other sources to get this code (except for
my extensions obviously).  The implementations here may not be as
portable as the original versions; I tend to focus on the Single Unix
Specification and not on some obsolete legacy systems found in the
basements of some vintage hardware clubs.

I also provide man pages for many functions, mostly extracted from Dan's
web documentation or documentation found in earlier versions of his
software.  For some reason, he abandoned man pages in favor of HTML
recently.

On July 4 2002, Dan also placed his DNS routines and supporting
low level functions in the public domain, so I copy them here instead of
reimplementing them.  http://online.securityfocus.com/archive/1/280642
has an online version of the bugtraq posting.

The author can be reached under felix-libowfat@fefe.de