source: rtems/cpukit/posix/src/sigdelset.c @ 77fbbd6

5
Last change on this file since 77fbbd6 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 888 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Deleted Signal from Set
5 * @ingroup POSIXAPI
6 */
7
8/*
9 *  3.3.3 Manipulate Signal Sets, P1003.1b-1993, p. 69
10 *
11 *  COPYRIGHT (c) 1989-1999.
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#if HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <errno.h>
24
25#include <rtems/system.h>
26#include <rtems/posix/sigset.h>
27#include <rtems/seterr.h>
28
29/*
30 *  3.3.3 Manipulate Signal Sets, P1003.1b-1993, p. 69
31 */
32
33int sigdelset(
34  sigset_t   *set,
35  int         signo
36)
37{
38  if ( !set )
39    rtems_set_errno_and_return_minus_one( EINVAL );
40
41  if ( !signo )
42    return 0;
43
44  if ( !is_valid_signo(signo) )
45    rtems_set_errno_and_return_minus_one( EINVAL );
46
47  *set &= ~signo_to_mask(signo);
48  return 0;
49}
Note: See TracBrowser for help on using the repository browser.