Commit Graph

21 Commits

Author SHA1 Message Date
christos
d1969826ba protect against multiple declarations. This also fixes a problem where
the inline functions would compile differently depending on if errno.h
was included or not.
2000-12-18 21:21:26 +00:00
christos
03b9210133 Add /*LINTED*/ comments to sigfillset() and sigemptyset(). (void)sig*set(s);
produced warnings.
1998-12-09 12:50:47 +00:00
thorpej
82865be7fd Change the type of sys_siglist and sys_signame from const char *const [] to
const char *const *, and rename them to __sys_siglist14 and __sys_signame14.
This will prevent the size of the exported symbol from changing when more
signals are added to the list.
1998-11-30 20:36:27 +00:00
kleink
b3ce018f65 Rely on <sys/featuretest.h> defining _REENTRANT if appropriate. 1998-10-24 16:35:19 +00:00
kleink
e4ecd59b9a In the inlined sigset_t operations, redirect the error indicator assignment via
*__errno() when compiling _REENTRANT (or the like) code.
1998-10-01 19:41:23 +00:00
thorpej
2cb59aaa0b Declare the size of sys_siglist[] and sys_signame[] to be SIGUSR2+1
instead of _NSIG for now; we need to change these to char **'s, and do
a symbol renaming trick on them, eventually (a'la what Todd did with
libbfd's target match array).
1998-09-21 19:14:43 +00:00
thorpej
7dcac1e40c __LIBCxx_SOURCE__ refers to the library major number, not the NetBSD release
number.
1998-09-13 04:11:51 +00:00
mycroft
57387ec1ae Minor KNFing. 1998-09-12 11:10:43 +00:00
mycroft
43a24c4412 Do the syscall versioning. 1998-09-12 10:53:26 +00:00
kleink
c97ee76bc4 Reorganize name space protection, mostly related to interfaces introduced in
XPG 4.2.
1998-05-25 21:55:48 +00:00
kleink
5d7a8f4a16 Modify the recent sigaltstack() interface change to use the __RENAME() scheme;
add __sigaltstack14().
1997-11-29 18:38:20 +00:00
kleink
5abc2c37ce Update sigaltstack() to use stack_t parameters. 1997-11-26 16:51:12 +00:00
kleink
bb8dae3601 Move inclusion of <sys/types.h> before that of <sys/signal.h>. 1997-11-18 20:30:24 +00:00
jtc
2fb69ec781 Add prototype for sigaltstack; from John Kohl in PR #2129 1996-02-29 00:04:57 +00:00
jtc
1d7a3830f2 Definition equating NSIG to _NSIG has been moved to <sys/signal.h> 1995-05-28 03:10:06 +00:00
jtc
84b76af555 Use _NSIG instead of NSIG or constant 32.
Define NSIG equal to _NSIG if !ANSI && !POSIX.
1995-05-28 02:53:56 +00:00
jtc
37133e9408 Don't include <sys/types.h> if _ANSI_SOURCE is defined. 1995-01-10 01:33:23 +00:00
jtc
ff34f690cc We removed the sigaddset(), sigdelset(), and sigismember() macros, although
they were POSIX.1 compliant, because users have misinterpreted the spec and
have written programs that depend on -1 being returned when a signal number
is out of range.  This made initialization of signal masks significantly
more expensive.

This change uses GCC's inline function extension to provide macro-like
signal mask manipulation functions.  Since most of the time constants
like SIGINT is used, gcc is able to remove unused range checking code.
Gcc is also smart enough to coalesce adjacent sigemptyset(), sigaddset(),
sigdelset(), and sigfullset() calls into a single assignment.
1995-01-05 06:01:18 +00:00
cgd
4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
jtc
40a5399cc6 Removed macro definitions of sigaddset(), segdelset(), & sigismember()
so that the function implementations (which have invalid signal error
checking) are used.
1994-08-12 04:55:51 +00:00
cgd
7e4a306f17 user-land signal include file 1994-05-11 03:37:39 +00:00