sigwait man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]

SIGWAIT(2)		    BSD Programmer's Manual		    SIGWAIT(2)

NAME
     sigwait - wait for a signal

SYNOPSIS
     #include <signal.h>

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

DESCRIPTION
     Sigwait() checks for a pending signal in set, clears it from the set of
     pending signals and returns the signal number in the location referenced
     by sig. If more than one of the signals contained in set is pending then
     sigwait() selects only one and acts upon it.  If no signal contained in
     set is pending, then sigwait() waits for a signal to arrive.  All of the
     signals contained in set should be blocked or unpredictable results may
     occur.

     If more than one thread is using sigwait() to wait for the same signal
     then only one thread will return from sigwait() with the signal number.

RETURN VALUES
     The sigwait() function returns 0 if successful and the signal number is
     stored in the location referenced by sig.

ERRORS
     The sigwait() function may return one of the following errors:

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

     [EFAULT]	   Sig points to memory that is not a valid part of the pro-
		   cess address space.

SEE ALSO
     sigprocmask(2)

BUGS
     When using threads it is not possible to use sigwait() to wait for SIGAL-
     RM.

     The sigwait() call is from POSIX.1c.  The analogous POSIX.1-1996 calls
     are sigtimedwait() and sigwaitinfo(), but these are not yet supported.

BSDI BSD/OS		       November 15, 1999			     1
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net