opnsense-src/lib/libthr/thread
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
..
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
thr_affinity.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_attr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_autoinit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrier.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrierattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cancel.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_clean.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_concurrency.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cond.c libthr: restore _pthread_cond_timedwait 2024-03-12 21:03:14 +00:00
thr_condattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_create.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_ctrdtr.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_detach.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_equal.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_event.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_exit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_fork.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getcpuclockid.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getthreadid_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_info.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_init.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_join.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_kern.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_kill.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_list.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_main_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_malloc.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
thr_multi_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_mutex.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_mutexattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_once.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_printf.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_private.h libthr: Preresolve selected EABI symbols on arm. 2024-07-25 18:24:22 +02:00
thr_pshared.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_pspinlock.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_resume_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_rtld.c lib{c,sys}: stop exposing errno symbol 2024-09-27 20:27:46 +01:00
thr_rwlock.c libthr: move __always_inline to canonical position 2024-06-24 10:05:58 -07:00
thr_rwlockattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_self.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sem.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sig.c Simplify signal handling code in libthr by removing use of SYS_sigreturn 2024-06-06 15:48:39 -06:00
thr_sigqueue.c libthr: add pthread_sigqueue(3) 2024-04-23 19:51:22 +03:00
thr_single_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sleepq.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_spec.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_spinlock.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_stack.c rtld: avoid division in __thr_map_stacks_exec() 2024-07-30 02:57:33 +03:00
thr_suspend_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_switch_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_symbols.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_syscalls.c libthr: avoid varargs in fcntl and openat interposers 2024-05-08 15:49:13 +01:00
thr_umtx.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_umtx.h libthr: move _umtx_op_err() to libsys 2024-02-05 20:34:56 +00:00
thr_yield.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00