diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-24 00:21:30 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:42 +0200 |
commit | efe9077ecf6114680aac09ae1cd0910b300c8d12 (patch) | |
tree | f01dfe8900bb5a98768e1a247cdb5792639b8c06 /include/signal.h | |
parent | 19607f1113ef9916a0a0ac2bf99b5bc32526f0de (diff) |
sigpause.c: provide the X/Open variant, since the BSD version is deprecated
Do not export __sigpause.
Provide __bsd_sigpause (unprototyped) if anyone may need it.
Adapt cancellation to use cancel.h.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/signal.h')
-rw-r--r-- | include/signal.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/signal.h b/include/signal.h index 052467758..41018565d 100644 --- a/include/signal.h +++ b/include/signal.h @@ -195,17 +195,20 @@ extern void psiginfo (__const siginfo_t *__pinfo, __const char *__s); This function is a cancellation point and therefore not marked with __THROW. */ -extern int __sigpause (int __sig_or_mask, int __is_sig); +/*extern int __sigpause (int __sig_or_mask, int __is_sig);*/ #ifdef __FAVOR_BSD /* Set the mask of blocked signals to MASK, wait for a signal to arrive, and then restore the mask. */ -extern int sigpause (int __mask) __THROW __attribute_deprecated__; -# define sigpause(mask) __sigpause ((mask), 0) +/*extern int sigpause (int __mask) __THROW __attribute_deprecated__; +# define sigpause(mask) __sigpause ((mask), 0)*/ +/* uClibc note: BSD sigpause is available as __bsd_sigpause. + * It is intentionally not prototyped */ #else # ifdef __USE_XOPEN /* Remove a signal from the signal mask and suspend the process. */ -# define sigpause(sig) __sigpause ((sig), 1) +extern int sigpause(int __sig); +/*# define sigpause(sig) __sigpause ((sig), 1)*/ # endif #endif #endif /* __UCLIBC_SUSV4_LEGACY__ */ |