version 1.13, 2010/07/26 07:08:22 |
version 1.14, 2010/10/01 20:10:24 |
|
|
int sigprocmask(int, const sigset_t *, sigset_t *); |
int sigprocmask(int, const sigset_t *, sigset_t *); |
int sigsuspend(const sigset_t *); |
int sigsuspend(const sigset_t *); |
|
|
#if defined(__GNUC__) |
#if !defined(_ANSI_LIBRARY) && !defined(lint) |
# if __GNUC_PREREQ__(4, 2) |
|
#define __SIGNAL_INLINE extern __inline __attribute((__gnu_inline__)) |
__only_inline int sigaddset(sigset_t *set, int signo) { |
# else |
|
#define __SIGNAL_INLINE extern __inline |
|
# endif |
|
__SIGNAL_INLINE int sigaddset(sigset_t *set, int signo) { |
|
int *__errno(void); |
int *__errno(void); |
|
|
if (signo <= 0 || signo >= _NSIG) { |
if (signo <= 0 || signo >= _NSIG) { |
|
|
return (0); |
return (0); |
} |
} |
|
|
__SIGNAL_INLINE int sigdelset(sigset_t *set, int signo) { |
__only_inline int sigdelset(sigset_t *set, int signo) { |
int *__errno(void); |
int *__errno(void); |
|
|
if (signo <= 0 || signo >= _NSIG) { |
if (signo <= 0 || signo >= _NSIG) { |
|
|
return (0); |
return (0); |
} |
} |
|
|
__SIGNAL_INLINE int sigismember(const sigset_t *set, int signo) { |
__only_inline int sigismember(const sigset_t *set, int signo) { |
int *__errno(void); |
int *__errno(void); |
|
|
if (signo <= 0 || signo >= _NSIG) { |
if (signo <= 0 || signo >= _NSIG) { |
|
|
} |
} |
return ((*set & (1 << ((signo)-1))) != 0); |
return ((*set & (1 << ((signo)-1))) != 0); |
} |
} |
#endif |
#endif /* !_ANSI_LIBRARY && !lint */ |
|
|
/* List definitions after function declarations, or Reiser cpp gets upset. */ |
/* List definitions after function declarations, or Reiser cpp gets upset. */ |
#define sigemptyset(set) (*(set) = 0, 0) |
#define sigemptyset(set) (*(set) = 0, 0) |