source: rtems/cpukit/include/rtems/posix/sigset.h @ 6b0a729b

5
Last change on this file since 6b0a729b was 21275b58, checked in by Sebastian Huber <sebastian.huber@…>, on 11/22/18 at 18:14:51

score: Static Objects_Information initialization

Statically allocate the objects information together with the initial
set of objects either via <rtems/confdefs.h>. Provide default object
informations with zero objects via librtemscpu.a. This greatly
simplifies the workspace size estimate. RTEMS applications which do not
use the unlimited objects option are easier to debug since all objects
reside now in statically allocated objects of the right types.

Close #3621.

  • Property mode set to 100644
File size: 854 bytes
Line 
1/**
2 * @file
3 *
4 * @brief POSIX Signal Sets Management Helper
5 *
6 * This file defines the interface to implementation helper for management
7 * of POSIX Signal Sets.
8 */
9
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
32static inline sigset_t signo_to_mask(
33  uint32_t sig
34)
35{
36  return 1u << (sig - 1);
37}
38
39static inline bool is_valid_signo(
40  int signo
41)
42{
43  return ((signo) >= 1 && (signo) <= 32 );
44}
45
46#endif
Note: See TracBrowser for help on using the repository browser.