RTEMS
5.0.0
cpukit
include
rtems
posix
sigset.h
Go to the documentation of this file.
1
10
/*
11
* COPYRIGHT (c) 1989-2011.
12
* On-Line Applications Research Corporation (OAR).
13
*
14
* The license and distribution terms for this file may be
15
* found in the file LICENSE in this distribution or at
16
* http://www.rtems.org/license/LICENSE.
17
*/
18
19
#ifndef _RTEMS_POSIX_SIGSET_H
20
#define _RTEMS_POSIX_SIGSET_H
21
22
#include <stdbool.h>
23
#include <signal.h>
24
25
/*
26
* Currently 32 signals numbered 1-32 are defined
27
*/
28
29
#define SIGNAL_EMPTY_MASK 0x00000000L
30
#define SIGNAL_ALL_MASK 0xffffffffL
31
32
static
inline
sigset_t signo_to_mask(
33
uint32_t sig
34
)
35
{
36
return
1u << (sig - 1);
37
}
38
39
static
inline
bool
is_valid_signo(
40
int
signo
41
)
42
{
43
return
((signo) >= 1 && (signo) <= 32 );
44
}
45
46
#endif
Generated by
1.8.13