diff options
author | Elliott Hughes <enh@google.com> | 2014-04-30 09:45:40 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-04-30 10:06:09 -0700 |
commit | 0990d4fda898ada86e557f872f5cb7d16b138e3c (patch) | |
tree | 43cd74258c43e23e8008c15aebdb0a3efd476f6c /libc/include/signal.h | |
parent | 77473e408504a7e298816b4071cd6902065b03d8 (diff) | |
download | bionic-0990d4fda898ada86e557f872f5cb7d16b138e3c.zip bionic-0990d4fda898ada86e557f872f5cb7d16b138e3c.tar.gz bionic-0990d4fda898ada86e557f872f5cb7d16b138e3c.tar.bz2 |
Make SIGRTMIN hide the real-time signals we use internally.
__SIGRTMIN will continue to tell the truth. This matches glibc's
behavior (as evidenced by the fact that we don't need a special case
in the strsignal test now).
Change-Id: I1abe1681d516577afa8cd39c837ef12467f68dd2
Diffstat (limited to 'libc/include/signal.h')
-rw-r--r-- | libc/include/signal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/include/signal.h b/libc/include/signal.h index 267f3e6..45c1cda 100644 --- a/libc/include/signal.h +++ b/libc/include/signal.h @@ -60,6 +60,12 @@ typedef int sig_atomic_t; #define _NSIG (_KERNEL__NSIG + 1) #define NSIG _NSIG +/* We take a few real-time signals for ourselves. May as well use the same names as glibc. */ +#define SIGRTMIN (__libc_current_sigrtmin()) +#define SIGRTMAX (__libc_current_sigrtmax()) +extern int __libc_current_sigrtmin(void); +extern int __libc_current_sigrtmax(void); + extern const char* const sys_siglist[]; extern const char* const sys_signame[]; /* BSD compatibility. */ |