diff options
| author | kre <kre@NetBSD.org> | 2017-05-09 11:14:16 +0000 |
|---|---|---|
| committer | kre <kre@NetBSD.org> | 2017-05-09 11:14:16 +0000 |
| commit | 55f53b705c74112a6c8387319ad233542990a2ea (patch) | |
| tree | dd2479245d734f8d6711aad8b2ad68ed4a8a37f6 /include | |
| parent | 921fae7ecdfb59739c7269ed7119d6a3a0298736 (diff) | |
Add the new signalname/signalnext/signalnumber interface to libc.
This as discussed on current-users in the thread
entitled:
Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX"
that can be found (starting at):
http://mail-index.netbsd.org/current-users/2017/04/28/msg031600.html
These functions provide the mechanism to enable applications
to divorce themselves from internal details of the signal
implementation.
Libc minor bumped, prototypes in <signal.h>, sets lists updated (and sorted).
One and all: feel free to improve the sources & man page (etc), but
please do not change the function signatures without discussion.
Diffstat (limited to 'include')
| -rw-r--r-- | include/signal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h index d954a61adda..d67328f7d34 100644 --- a/include/signal.h +++ b/include/signal.h @@ -1,4 +1,4 @@ -/* $NetBSD: signal.h,v 1.55 2015/07/31 12:51:32 kamil Exp $ */ +/* $NetBSD: signal.h,v 1.56 2017/05/09 11:14:16 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -56,6 +56,13 @@ extern const int sys_nsig __RENAME(__sys_nsig14); __BEGIN_DECLS int raise(int); + +#if defined(_NETBSD_SOURCE) +const char *signalname(int); +int signalnext(int); +int signalnumber(const char *); +#endif + #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE) int kill(pid_t, int); |
