123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _SIGSET_CVT_MASK_H
- #define _SIGSET_CVT_MASK_H
- #include <string.h>
- static __inline__ void __attribute__ ((unused))
- sigset_set_old_mask (sigset_t *set, int mask)
- {
- if (_SIGSET_NWORDS == 2)
- set->__val[1] = 0;
- if (_SIGSET_NWORDS > 2)
- memset(set, 0, sizeof(*set));
- set->__val[0] = (unsigned int) mask;
- }
- static __inline__ int __attribute__ ((unused))
- sigset_get_old_mask (const sigset_t *set)
- {
- return (unsigned int) set->__val[0];
- }
- #endif
|