icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions:

SIGWAIT(3)                OpenBSD Programmer's Manual               SIGWAIT(3)

     sigwait - synchronously accept a signal

     #include <signal.h>

     sigwait(sont sigset_t *set, int *sig);

     The sigwait() function selects a pending signal from set, atomically
     clears it from the system's set of pending signals, and returns that sig-
     nal number in the location referenced by sig. If prior to the call to
     sigwait() there are multiple pending instances of a single signal number,
     it is undefined whether upon successful return there are any remaining
     pending signals for that signal number.  If no signal in set is pending
     at the time of the call, the thread shall be suspended until one or more
     becomes pending.  The signals defined by set should have been blocked at
     the time of the call to sigwait(); otherwise the behaviour is undefined.
     The effect of sigwait() on the signal actions for the signals in set is

     If more than one thread is using sigwait() to wait for the same signal,
     no more than one of these threads shall return from sigwait() with the
     signal number.  Which thread returns from sigwait() if more than a single
     thread is waiting is unspecified.

     Upon successful completion, sigwait() stores the signal number of the re-
     ceived signal at the location referenced by sig and returns zero.

     On error, sigwait() returns one of these error values:

     [EINVAL]      The set argument contains an invalid or unsupported signal

     sigaction(2),  sigpending(2),  sigsuspend(2),  pause(3),
     pthread_sigmask(3),  pthreads(3)

     sigwait() conforms to ISO/IEC 9945-1 ANSI/IEEE (``POSIX'') Std

OpenBSD 2.6                     August 20, 1998                              1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]

[Overview Topics]

RocketLink!--> Man page versions:

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > sigwait.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments