-lite 1.8.3

Libite (-lite) is a lightweight library of frog DNA. It can be used to fill the gaps in any dinosaur project. It holds useful functions and macros developed by both Finit and the OpenBSD project. Most notably the string functions: strlcpy(3), strlcat(3) and the highly useful *BSD sys/queue.h and sys/tree.h API's. Libite aims to fill in the gaps missing in GLIBC/EGLIBC. (It does not aimo to become another GLIB though.) One such gap in GLIBC is the missing _SAFE macros in sys/queue.h — highly recommended when traversing lists to delete/free nodes.

Tags utility library list queue tree strlcpy linux
License MITL
State stable

Recent Releases

1.8.310 Jan 2017 02:45 minor feature: Support absolute path in pidfile(). Needed by, e.g. Inadyn. Add initial debian/ packaging. Update README with note on remembering to set umask() . In use-cases when pidfile() is called consecutively, e.g. on SIGHUP, recreate PID file if it no longer exists.
1.8.205 Sep 2016 19:25 minor feature: Updated build instructions in README. Converted touch(), makedir(), makefifo(), and erase() from macros to Inline functions. Also removed implicit logging to stderr on error. Small memory leak in pidfile()... at exit. For building on musl libc.
1.8.009 Jun 2016 11:45 minor feature: Change return type of fsendfile() from size_t to ssize_t . Change dir() semantics: do not assert and always return error without calling perror() or similar. The OpenBSD pidfile() function's prepath _PATH_VARRUN can now be overridden by setting the hidden __pidfile_path variable. E.g., to _PATH_TMP. Make sure read the docs!. Add new unit test framework make check. bad path in new strndupa() header file. Add missing progress bar API's to lite.h.
1.7.005 Jun 2016 07:05 minor feature: Add support for GNU strdupa(), for Inadyn on NetBSD. Add support for GNU strndupa() and strnlen() . mkpath() to handle creating relative directories.
1.6.014 May 2016 18:25 minor feature: Add support for NetBSD fparaseln() for the benefit of Mg . Add support for OpenBSD reallocarray() for the benefit of Mg . Constify fisdir() argument.
1.5.118 Apr 2016 23:25 minor feature: Update README.md, add help when libite is used in autotools projects. Spell checking and minor cleanup. Activate use of utimensat() when pidfile() is called multiple times. This reduces the overhead of calling open+write+to simply updating the mtime of the PID file. Westermo for fcopyfile(): nothing copied on embedded PPC system when using tmpfile() as source.
1.5.020 Mar 2016 03:23 minor feature: Change namespace for header files: libite/ to lite/, e.g. using pkg-config your C program must now #include . Update pidfile() to use utimensat() to update atime+mtime instead of opening and writing PID again. Less overhead and nanonsecond res.
1.4.424 Feb 2016 10:45 minor feature: Add ibite.pc.in for pkg-config support. tempfile() fails with bad O_TMPFILE on some embedded. Targets, in particular PowerPC. On systems with older GLIBC but with a sufficiently new kernel O_TMPFILE is missing and the local libite Definition was wrong, hard coded for x86. by Johan Askerin.
1.4.122 Jan 2016 15:52 major feature: Change to GNU configure and build system. Add Niels Provos' splay and red-black tree implementation from OpenBSD sys/tree.h, r1.14. Make pidfile() file name accessible as __pidfile_name