Utility functions from BSD systems
  • C 88.2%
  • C++ 5.1%
  • M4 4.2%
  • Makefile 1.9%
  • Shell 0.6%
Find a file
Guillem Jover 53e129a52d build: Improve error diagnosis for configure version fetching script
Check for git being present and error out otherwise explaining why. And
improve the fallback error message to mention that this is neither a git
checkout nor a distribution tarball.

Prompted-by: Norbert Preining <norbert@preining.info> (in dpkg)
2026-11-12 02:54:29 +01:00
include Add consttime_memequal() function 2026-05-16 17:49:08 +02:00
m4 build: Do not rely on internal autoconf ac_cv_sys_file_offset_bits variable 2024-03-14 02:00:36 +01:00
man man: Improve wording for discouraged and optional features in libbsd(7) 2026-05-18 04:56:59 +02:00
src build: Use POSIX sed pattern for format.ld 2026-11-12 02:50:49 +01:00
test test: nlist: make resilient against -Wl,--gc-sections 2024-03-14 09:33:34 +01:00
.gitignore build: Generate the map file from the configured ABI 2024-02-18 13:54:13 +01:00
.gitlab-ci.yml build: Switch to debian:unstable Docker image 2026-05-18 04:56:59 +02:00
autogen build: Switch to autotools 2012-05-29 04:35:55 +02:00
configure.ac build: Check sanitize argument value 2026-05-18 04:56:59 +02:00
COPYING Add consttime_memequal() function 2026-05-16 17:49:08 +02:00
get-version build: Improve error diagnosis for configure version fetching script 2026-11-12 02:54:29 +01:00
Makefile.am build: Set TAR_OPTIONS to avoid leaking maintainer information on dist 2026-05-16 17:49:08 +02:00
README doc: Update anongit & cgit URLs to use gitlab instead 2024-11-02 23:22:22 +01:00
TODO man: Replace references to a.out(5) with elf(5) 2019-08-08 03:22:09 +02:00

libbsd - Utility functions from BSD systems

This library provides useful functions commonly found on BSD systems,
and lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.

A BSD compatible message-digest library is required, on systems where
this is not provided by its libc or libmd libraries, the canonical
implementation to use is <https://www.hadrons.org/software/libmd/>.


Releases
--------

  <https://libbsd.freedesktop.org/releases/>


Mailing List
------------

The subscription interface and web archives can be found at:

  <https://lists.freedesktop.org/mailman/listinfo/libbsd>

The mail address is:

  libbsd@lists.freedesktop.org


Source Repository
-----------------

The primary repository can be browsed at:

  <https://gitlab.freedesktop.org/libbsd/libbsd>

and cloned from:

  <https://gitlab.freedesktop.org/libbsd/libbsd.git>


Building from git source
------------------------

To prepare the libbsd source tree from git before starting the build process
some required software needs to be installed:

  GNU autoconf >= 2.67
  GNU automake >= 1.9
  GNU libtool >= 2.0

After installing the needed software, and running the following command on
the git tree:

  $ ./autogen

the source should be roughly equivalent to the distributed tar source.


Building from tar source
------------------------

The minimum software required to configure and build dpkg from a tarball is:

  C89 compiler
  make

The following software might be required depending on the system:

  libmd (whenever the libc does not provide the needed digest functions)

The build process is done by running the usual «./configure; make». To
see all available configuration options please run «./configure --help».