git: 7f309ac03989 - main - libc: provide the declaration for __libsys_errno in libc_private.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Oct 2026 13:52:34 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=7f309ac03989032903cce945a743a6046e496b10
commit 7f309ac03989032903cce945a743a6046e496b10
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-10-19 22:18:24 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-30 13:51:02 +0000
libc: provide the declaration for __libsys_errno in libc_private.h
Reviewed by: aokblast, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D60838
---
lib/libc/include/libc_private.h | 2 ++
lib/libthr/sys/thr_error.c | 2 --
lib/libthr/thread/thr_rtld.c | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 205f0453ffc7..28534e99442c 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -390,4 +390,6 @@ int __libc_uexterr_gettext(char *buf, size_t bufsz);
void __libc_uexterr_set(int eerror, int category, const char *mmsg,
uint64ptr_t pp1, uint64ptr_t pp2, int line);
+extern int __libsys_errno;
+
#endif /* _LIBC_PRIVATE_H_ */
diff --git a/lib/libthr/sys/thr_error.c b/lib/libthr/sys/thr_error.c
index ec7a57bf6610..1916e78109af 100644
--- a/lib/libthr/sys/thr_error.c
+++ b/lib/libthr/sys/thr_error.c
@@ -39,8 +39,6 @@
#include "libc_private.h"
#include "thr_private.h"
-extern int __libsys_errno;
-
__weak_reference(__error_threaded, __error);
int *
__error_threaded(void)
diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c
index 3cfdfc548cf2..918f739c3bd1 100644
--- a/lib/libthr/thread/thr_rtld.c
+++ b/lib/libthr/thread/thr_rtld.c
@@ -39,8 +39,6 @@
#include "rtld_lock.h"
#include "thr_private.h"
-extern int __libsys_errno;
-
static int _thr_rtld_clr_flag(int);
static void *_thr_rtld_lock_create(void);
static void _thr_rtld_lock_destroy(void *);