summaryrefslogtreecommitdiffstats
path: root/include/signal.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-10-02 19:33:23 +0000
committermarcel <marcel@FreeBSD.org>1999-10-02 19:33:23 +0000
commit0611a8a3a0777ec31a9c7459ac060137decb8f8f (patch)
treef3a0b4f9f225480c2417e488b4a3a37762d732da /include/signal.h
parent3e2b5fba5c91dc1e24adf05af3684010b89a444b (diff)
downloadFreeBSD-src-0611a8a3a0777ec31a9c7459ac060137decb8f8f.zip
FreeBSD-src-0611a8a3a0777ec31a9c7459ac060137decb8f8f.tar.gz
Remove the inline versions of sigaddset, sigdelset, sigemptyset,
sigfillset and sigismember. Submitted by: bde
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/signal.h b/include/signal.h
index 2e846e6..c60db50 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -90,57 +90,4 @@ void psignal __P((unsigned int, const char *));
#endif /* !_ANSI_SOURCE */
__END_DECLS
-#ifndef _ANSI_SOURCE
-/* List definitions after function declarations, or Reiser cpp gets upset. */
-extern __inline int sigaddset(sigset_t *set, int signo)
-{
-
- if (signo <= 0 || signo > _SIG_MAXSIG) {
- /* errno = EINVAL; */
- return (-1);
- }
- set->__bits[_SIG_WORD(signo)] |= _SIG_BIT(signo);
- return (0);
-}
-
-extern __inline int sigdelset(sigset_t *set, int signo)
-{
-
- if (signo <= 0 || signo > _SIG_MAXSIG) {
- /* errno = EINVAL; */
- return (-1);
- }
- set->__bits[_SIG_WORD(signo)] &= ~_SIG_BIT(signo);
- return (0);
-}
-
-extern __inline int sigemptyset(sigset_t *set)
-{
- int i;
-
- for (i = 0; i < _SIG_WORDS; i++)
- set->__bits[i] = 0;
- return (0);
-}
-
-extern __inline int sigfillset(sigset_t *set)
-{
- int i;
-
- for (i = 0; i < _SIG_WORDS; i++)
- set->__bits[i] = ~(unsigned int)0;
- return (0);
-}
-
-extern __inline int sigismember(__const sigset_t *set, int signo)
-{
-
- if (signo <= 0 || signo > _SIG_MAXSIG) {
- /* errno = EINVAL; */
- return (-1);
- }
- return ((set->__bits[_SIG_WORD(signo)] & _SIG_BIT(signo)) ? 1 : 0);
-}
-#endif /* !_ANSI_SOURCE */
-
#endif /* !_SIGNAL_H_ */
OpenPOWER on IntegriCloud