bluhm
3ea600eb29
The open POSIX test suite reveals that sigpause(int sigmask) from
...
4.2 BSD takes a signal mask as argument while POSIX sigpause(int
sig) expects a single signal. Do not expose our traditional BSD
sigpause(3) to XPG/POSIX sources.
OK guenther@
2018-05-30 13:20:38 +00:00
guenther
2032f1fe08
Remove sigreturn declaration and the now-unused libc syscall stub
2016-05-09 23:55:52 +00:00
millert
1647db04b3
Convert sigemptyset and sigfillset to inline functions to avoid
...
warnings with newer gcc versions and -Werror=unused-value.
OK guenther@
2016-02-04 22:04:34 +00:00
guenther
60d4950662
Split the intra-thread functionality from kill(2) into its own syscall
...
thrkill(2), rolling the kill(2) syscall number with the ABI change to
avoid breaking binaries during during the transition. thrkill(2) includes
a 'tcb' argument that eliminates the need for locking in pthread_kill()
and simplifies pthread_cancel(). Switch __stack_smash_handler() to use
thrkill(2) and explicitly unblock SIGABRT.
Minor bump to both libc and libpthread: make sure you install a new kernel!
ok semarie@
2015-11-10 04:30:59 +00:00
guenther
014e36e3da
Welcome to 1989: assume the compiler support const
2014-07-12 02:51:52 +00:00
guenther
acf82b0a9d
lint is dead (long live the lint!), so stop using it as a cpp conditional
...
(namespace pollution!) or talking about its opinion on code.
ok krw@
2014-03-16 18:38:30 +00:00
deraadt
4a39ccd02c
Remove excessive sys/cdefs.h inclusion
...
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
guenther
d04f2212c6
Improve standards compliance: bsd_signal() was XSI only and has been dropped
...
from the most recent version, use the implementation namespace for variables
in inline functions, and add __restrict as specified.
ok millert@
2012-06-10 21:31:03 +00:00
espie
6623f2ad86
functions are top-level objects anyways, make that clearer.
...
Okay otto@
2012-05-13 16:22:05 +00:00
kettenis
7f6b726169
The prototype for pthread_sigmask(2) is supposed to live in <signal.h>
...
instead of <pthread.h>.
ok guenther@, millert@
2012-01-03 16:53:48 +00:00
guenther
3b196c124d
sigstack() is long dead, and the compat sigaltstack syscall is gone too.
...
Correct the namespace protections for sigreturn(), sigwait(), and psignal()
ok millert@
2011-11-22 21:13:30 +00:00
guenther
6bd17a161e
sigset_t is unsigned, so eliminate a warning by shifting a 1U instead
...
of a 1 when creating signal masks.
ok millert@
2011-07-06 17:39:22 +00:00
guenther
2095efaf70
Now that __only_inline is in <sys/cdefs.h>, replace the local versions in
...
<ctype.h> and <signal.h>
ok kettenis@ millert@ deraadt@
2010-10-01 20:10:24 +00:00
kettenis
1cad1807d8
Always force GNU inline semantics here as well.
2010-07-26 07:08:22 +00:00
kettenis
8958e66d81
Make sure sys_signame and sys_siglist are wrapped in __BEGIN_DECLS.
...
Needed to tell pedantic C++ compilers these symbols have 'C' linkage.
ok kurt@
2008-04-29 14:44:04 +00:00
espie
ddaabf24dd
allow extern inline stuff to proceed unchanged thru the mess that the
...
combined GCC and ISO committees managed to make out of it.
With this, gcc >= 4.3 can grok its way through it correctly.
okay kettenis@, with some help figuring stuff out.
2007-03-17 21:38:14 +00:00
millert
c2ef537720
Do not declare errno as extern int, set it via __errno().
2005-12-21 19:09:01 +00:00
millert
52a0e6034e
First step in include files overhaul. Use __FOO_VISIBLE (as defined
...
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
2005-12-13 00:35:22 +00:00
millert
22036547e1
XPG specifies bsd_signal(3) so make it an alias for signal(3); OK deraadt@
2004-05-03 17:25:00 +00:00
millert
e33d3bd3b8
Remove the advertising clause in the UCB license which Berkeley
...
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02 19:34:12 +00:00
millert
e7beb4a7d5
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
2002-02-19 19:39:35 +00:00
millert
c72b5b24e1
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-16 21:27:05 +00:00
d
92efb73507
Add thread-safety to libc, so that libc_r will build (on i386 at least).
...
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO
1998-11-20 11:18:22 +00:00
deraadt
ada775ef96
pull cdefs.h in sys/signal.h instead; improvement on netbsd pr#2712; laine@mornignstar.com
1996-09-20 07:27:50 +00:00
niklas
bc8407607c
From NetBSD: Add prototype for sigaltstack; from John Kohl in PR #2129
1996-03-18 19:15:53 +00:00
deraadt
df930be708
initial import of NetBSD tree
1995-10-18 08:37:01 +00:00