Go to file
Guillem Jover b0ebb0d4c2 build: Use __register_atfork() only if really available
This is a glibc-specific symbol that has no public declaration. But is
being used by the OpenBSD and this implementation as a hack to avoid
having to link against the pthread library. This interface is at least
included in LSB 5.0 [L], and using pthread_atfork() is otherwise
problematic anyway [P].

 [L] <https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib---register-atfork.html>
 [P] <http://austingroupbugs.net/view.php?id=851>

One problem is that we were using it whenever __GLIBC__ is defined,
which is supposed to be defined only on an actual glibc, but uClibc
defines that macro, but it does not provide the symbol on its noMMU
variant.

We add a new configure check that will try to link a program that uses
that symbol to make sure it is present.

Closes: !2
Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-08-08 03:21:49 +02:00
include Correct Clang feature detection 2018-06-18 04:31:00 +02:00
man man: Fix comma splice 2018-05-23 02:58:09 +02:00
src build: Use __register_atfork() only if really available 2019-08-08 03:21:49 +02:00
test Don't require <grp.h> 2018-06-18 04:31:00 +02:00
.gitignore build: Set subdir-objects automake option 2013-10-21 05:33:08 +02:00
.gitlab-ci.yml build: Simplify gitlab CI configuration 2018-05-31 04:00:26 +02:00
autogen build: Switch to autotools 2012-05-29 04:35:55 +02:00
configure.ac build: Use __register_atfork() only if really available 2019-08-08 03:21:49 +02:00
COPYING Fix COPYING file format 2018-05-22 13:47:05 +02:00
get-version build: Switch to autotools 2012-05-29 04:35:55 +02:00
Makefile.am build: Make git log invocation immune to local configuration 2015-11-30 23:02:23 +01:00
README Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
TODO Update TODO 2017-06-18 23:37:01 +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.


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 master repository can be browsed at:

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

and cloned from:

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