guenther
c5e3cabc98
Remove sigreturn declaration and the now-unused libc syscall stub
8 years ago
millert
f91e94f20f
Convert sigemptyset and sigfillset to inline functions to avoid
warnings with newer gcc versions and -Werror=unused-value.
OK guenther@
9 years ago
guenther
d9ad872cfb
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@
9 years ago
guenther
15b4e78952
Welcome to 1989: assume the compiler support const
10 years ago
guenther
5ebaeabad3
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@
10 years ago
deraadt
f0e9631687
Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
12 years ago
guenther
c71d76f9f5
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@
12 years ago
espie
d2868c7c70
functions are top-level objects anyways, make that clearer.
Okay otto@
12 years ago
kettenis
3333a3c88c
The prototype for pthread_sigmask(2) is supposed to live in <signal.h>
instead of <pthread.h>.
ok guenther@, millert@
13 years ago
guenther
deb097fad0
sigstack() is long dead, and the compat sigaltstack syscall is gone too.
Correct the namespace protections for sigreturn(), sigwait(), and psignal()
ok millert@
13 years ago
guenther
9c09f464a8
sigset_t is unsigned, so eliminate a warning by shifting a 1U instead
of a 1 when creating signal masks.
ok millert@
13 years ago
guenther
6dd6b903aa
Now that __only_inline is in <sys/cdefs.h>, replace the local versions in
<ctype.h> and <signal.h>
ok kettenis@ millert@ deraadt@
14 years ago
kettenis
4c5e35a51c
Always force GNU inline semantics here as well.
14 years ago
kettenis
5ba8ed9bb7
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@
16 years ago
espie
c6805c8e99
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.
18 years ago
millert
32254634b7
Do not declare errno as extern int, set it via __errno().
19 years ago
millert
5acf200b2a
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@
19 years ago
millert
5fd6059fd1
XPG specifies bsd_signal(3) so make it an alias for signal(3); OK deraadt@
20 years ago
millert
cc6797b16c
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
millert
d0f45c1a97
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
23 years ago
millert
b68c09e067
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.
23 years ago
d
31570910f0
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
26 years ago
deraadt
952b9732f3
pull cdefs.h in sys/signal.h instead; improvement on netbsd pr#2712; laine@mornignstar.com
28 years ago
niklas
90fc8bd6aa
From NetBSD: Add prototype for sigaltstack; from John Kohl in PR #2129
29 years ago
deraadt
47b73ff83c
initial import of NetBSD tree
29 years ago