1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00
freebsd/lib/libthr
Brooks Davis 1235d276b7 lib{c,sys}: stop exposing errno symbol
Officially since C11 (and in reality FreeBSD since 3.0 with commit
1b46cb523d) errno has been defined to be a macro.  Rename the symbol
to __libsys_errno and move it to FBSDprivate_1.0 and confine it entierly
to libsys for use by libthr.  Add a FBSD_1.0 compat symbol for existing
binaries that were incorrectly linked to the errno symbol during
libc.so.7's lifetime.

This deliberately breaks linking software that directly links to errno.
Such software is broken and will fail in surprising ways if it becomes
threaded (e.g., if it triggers loading of a pam or nss module that
uses threads.)

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D46780
2024-09-27 20:27:46 +01:00
..
arch libthr: Preresolve selected EABI symbols on arm. 2024-07-25 18:24:22 +02:00
sys lib{c,sys}: stop exposing errno symbol 2024-09-27 20:27:46 +01:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
thread lib{c,sys}: stop exposing errno symbol 2024-09-27 20:27:46 +01:00
libthr.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend libthr: add libsys for dirdeps build 2024-09-24 01:24:36 +00:00
plockstat.d Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
pthread.map libthr: add pthread_sigqueue(3) 2024-04-23 19:51:22 +03:00