source: rtems/c/src/exec/posix/src/sigdelset.c @ 07d880f4

4.104.114.84.95
Last change on this file since 07d880f4 was 07d880f4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/99 at 20:45:31

Split psignal.c into many more files. This reduced the amount of
object code that has to be loaded just for initializing the signal
manager.

  • Property mode set to 100644
File size: 883 bytes
Line 
1/*
2 *  3.3.3 Manipulate Signal Sets, P1003.1b-1993, p. 69
3 *
4 *  COPYRIGHT (c) 1989-1998.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15
16#include <pthread.h>
17#include <errno.h>
18
19#include <rtems/system.h>
20#include <rtems/posix/pthread.h>
21#include <rtems/posix/psignal.h>
22#include <rtems/posix/seterr.h>
23
24/*
25 *  3.3.3 Manipulate Signal Sets, P1003.1b-1993, p. 69
26 */
27
28int sigdelset(
29  sigset_t   *set,
30  int         signo
31)
32{
33  if ( !set )
34    set_errno_and_return_minus_one( EINVAL );
35
36  if ( !signo )
37    return 0;
38
39  if ( !is_valid_signo(signo) )
40    set_errno_and_return_minus_one( EINVAL );
41
42  *set &= ~signo_to_mask(signo);
43  return 0;
44}
45
Note: See TracBrowser for help on using the repository browser.