source: rtems/cpukit/posix/include/rtems/posix/sigset.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 816 bytes
Line 
1/**
2 * @file rtems/posix/sigset.h
3 *
4 * This file defines the interface to implementation helper for management
5 * of POSIX Signal Sets.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2011.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#ifndef _RTEMS_POSIX_SIGSET_H
18#define _RTEMS_POSIX_SIGSET_H
19
20#include <signal.h> // sigset_t
21
22/*
23 *  Currently 32 signals numbered 1-32 are defined
24 */
25
26#define SIGNAL_EMPTY_MASK  0x00000000L
27#define SIGNAL_ALL_MASK    0xffffffffL
28
29static inline sigset_t signo_to_mask(
30  uint32_t sig
31)
32{
33  return 1u << (sig - 1);
34}
35
36static inline bool is_valid_signo(
37  int signo
38)
39{
40  return ((signo) >= 1 && (signo) <= 32 );
41}
42
43#endif
Note: See TracBrowser for help on using the repository browser.