Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
pause(3) OSS Library Calls Reference Manual
NAME
pause - Suspends a process until a signal is received
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series and J-series native Guardian processes: implicit libraries
H-series and J-series OSS processes: implicit libraries
32-bit H-series and J-series OSS processes that use the POSIX User Thread Model library: |
/G/system/zdllnnn/zputdll
64-bit H-series and J-series OSS processes that use the POSIX User Thread Model library: |
/G/system/zdllnnn/yputdll
SYNOPSIS
#include <unistd.h>
int pause(void);
DESCRIPTION
The pause( ) function suspends the calling process until it receives a signal whose action is either
to execute a signal-catching function or to terminate the process. The pause( ) function does not
affect the action taken when the signal is received.
Use From a Threaded Application
The thread-aware pause( ) function suspends the calling thread until it receives a signal whose
action is either to execute a signal-catching function or to terminate the process. The thread-
aware pause( ) function does not affect the action taken when the signal is received.
The thread-aware signal is always enabled in the POSIX User Thread (PUT) Model library so
externally generated signals (such as SIGALRM, SIGCHLDL, SIGINT, and SIGQUIT) are
catchable by threads.
Use From the Guardian Environment
If called from a TNS or accelerated Guardian process, the value -1 is returned and errno is set to
[ENOTOSS].
NOTES
To use the pause( ) functionality in a threaded application that uses the Standard POSIX Threads
library, see spt_pause(2).
To use this function in a threaded application that uses the POSIX User Thread Model library on
systems running H06.21 or later RVUs or J06.10 or later RVUs, you must perform all of the fol-
lowing tasks to make the function thread-aware in a multi-threaded application:
• Compile the application using the _PUT_MODEL_ feature test macro or equivalent
compiler command option.
• Link the application to the zputdll library (/G/system/zdllnnn/zputdll).
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, you can use |
this function with 32-bit or 64-bit threaded applications.
To use this function in a 32-bit threaded application on systems running H06.24 or later RVUs or |
J06.13 or later RVUs, perform the same tasks (described above) used to make the function |
thread-aware in a multi-threaded application on systems running H06.21/J06.10 or later RVUs.
To use this function in a 64-bit threaded application on systems running H06.24 or later RVUs or |
J06.13 or later RVUs, you must perform all of the following tasks to make the function thread- |
aware in a multi-threaded application:
5−50 Hewlett-Packard Company 527187-017