=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/signal.h,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/include/signal.h 2015/11/10 04:30:59 1.23 --- src/include/signal.h 2016/02/04 22:04:34 1.24 *************** *** 1,4 **** ! /* $OpenBSD: signal.h,v 1.23 2015/11/10 04:30:59 guenther Exp $ */ /* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: signal.h,v 1.24 2016/02/04 22:04:34 millert Exp $ */ /* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */ /*- *************** *** 71,77 **** extern int *__errno(void); ! __only_inline int sigaddset(sigset_t *__set, int __signo) { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; --- 71,78 ---- extern int *__errno(void); ! __only_inline int sigaddset(sigset_t *__set, int __signo) ! { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; *************** *** 80,86 **** return (0); } ! __only_inline int sigdelset(sigset_t *__set, int __signo) { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; --- 81,88 ---- return (0); } ! __only_inline int sigdelset(sigset_t *__set, int __signo) ! { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; *************** *** 89,106 **** return (0); } ! __only_inline int sigismember(const sigset_t *__set, int __signo) { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; } return ((*__set & (1U << ((__signo)-1))) != 0); } - #endif /* !_ANSI_LIBRARY */ ! /* List definitions after function declarations, or Reiser cpp gets upset. */ ! #define sigemptyset(set) (*(set) = 0, 0) ! #define sigfillset(set) (*(set) = ~(sigset_t)0, 0) #if __BSD_VISIBLE || __XPG_VISIBLE >= 420 int killpg(pid_t, int); --- 91,118 ---- return (0); } ! __only_inline int sigismember(const sigset_t *__set, int __signo) ! { if (__signo <= 0 || __signo >= _NSIG) { *__errno() = 22; /* EINVAL */ return -1; } return ((*__set & (1U << ((__signo)-1))) != 0); } ! __only_inline int sigemptyset(sigset_t *__set) ! { ! *__set = 0; ! return (0); ! } ! ! __only_inline int sigfillset(sigset_t *__set) ! { ! *__set = ~(sigset_t)0; ! return (0); ! } ! ! #endif /* !_ANSI_LIBRARY */ #if __BSD_VISIBLE || __XPG_VISIBLE >= 420 int killpg(pid_t, int);