Remove the inline versions of sigaddset, sigdelset, sigemptyset,

sigfillset and sigismember.

Submitted by: bde
This commit is contained in:
Marcel Moolenaar 1999-10-02 19:33:23 +00:00
parent e25ad0cbaf
commit 9102cd0abd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51871

View File

@ -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_ */