Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/lib/libc/thread-stub Pull up following revision(s) (reque...
details: https://anonhg.NetBSD.org/src/rev/067ad5e18ca8
branches: netbsd-9
changeset: 373377:067ad5e18ca8
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 04 14:41:39 2023 +0000
description:
Pull up following revision(s) (requested by uwe in ticket #1583):
lib/libc/thread-stub/thread-stub.c: revision 1.30
Adjust the error return value of pthread_sigmask for !libpthread usage
Instead of returning -1, return errno on error.
Catch up after the fix in libpthread by Andrew Doran in 2008
in lib/libpthread/pthread_misc.c r.1.9.
It's an open question whether this function shall be used without linked
in the POSIX thread library.
Detected by Bruno Haible (GNU) and documented in gnulib in commit
"pthread_sigmask: Avoid test failure on NetBSD 8.0. " r. 4d16a83b0c1fcb6c.
diffstat:
lib/libc/thread-stub/thread-stub.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 2bcaa330d021 -r 067ad5e18ca8 lib/libc/thread-stub/thread-stub.c
--- a/lib/libc/thread-stub/thread-stub.c Wed Feb 01 19:01:48 2023 +0000
+++ b/lib/libc/thread-stub/thread-stub.c Sat Feb 04 14:41:39 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thread-stub.c,v 1.29 2019/03/05 01:35:52 christos Exp $ */
+/* $NetBSD: thread-stub.c,v 1.29.2.1 2023/02/04 14:41:39 martin Exp $ */
/*-
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: thread-stub.c,v 1.29 2019/03/05 01:35:52 christos Exp $");
+__RCSID("$NetBSD: thread-stub.c,v 1.29.2.1 2023/02/04 14:41:39 martin Exp $");
#endif /* LIBC_SCCS and not lint */
/*
@@ -382,7 +382,9 @@
CHECK_NOT_THREADED();
- return sigprocmask(h, s, o);
+ if (sigprocmask(h, s, o))
+ return errno;
+ return 0;
}
thr_t
Home |
Main Index |
Thread Index |
Old Index