[BACK]Return to signal.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/signal.h between version 1.13 and 1.14

version 1.13, 2010/07/26 07:08:22 version 1.14, 2010/10/01 20:10:24
Line 62 
Line 62 
 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) {
Line 79 
Line 75 
         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) {
Line 90 
Line 86 
         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) {
Line 99 
Line 95 
         }          }
         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)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14