source: rtems/c/src/exec/posix/src/pause.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: 778 bytes
Line 
1/*
2 *  3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81
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 <signal.h>
18#include <errno.h>
19
20#include <rtems/system.h>
21#include <rtems/posix/pthread.h>
22#include <rtems/posix/psignal.h>
23
24/*
25 *  3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81
26 */
27
28int pause( void )
29{
30  sigset_t  all_signals;
31  int       status;
32
33  (void) sigfillset( &all_signals );
34
35  status = sigtimedwait( &all_signals, NULL, NULL );
36
37  return status;
38}
39
Note: See TracBrowser for help on using the repository browser.