| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- wait for queued signals
#include <signal.h>intsigwaitinfo(const sigset_t *restrictset,siginfo_t *restrictinfo);
intsigtimedwait(const sigset_t *restrictset,siginfo_t *restrictinfo,const struct timespec *restricttimeout);
Thesigwaitinfo() function selects the pending signal from the set specifiedbyset. Should any of multiple pending signals in the rangeSIGRTMINtoSIGRTMAX be selected, it will be the lowest numbered one. The selectionorder between realtime and non-realtime signals, or between multiple pending non-realtime signals,is unspecified. If no signal inset is pending at the timeof the call, the calling thread is suspended until one or moresignals inset become pending or until it is interrupted by an unblocked,caught signal.
Thesigwaitinfo() function behaves the same as thesigwait(2) function iftheinfo argument isNULL. If theinfo argument is non-NULL, thesigwaitinfo() function behaves the same assigwait(2), except that the selected signalnumber is stored in thesi_signo member, and the cause of thesignal is stored in thesi_code member. If any value is queuedto the selected signal, the first such queued value is dequeued and, iftheinfo argument is non-NULL, the value is stored in thesi_valuemember ofinfo. The system resource used to queue the signal willbe released and made available to queue other signals. If no value isqueued, the content of thesi_value member is undefined. If no furthersignals are queued for the selected signal, the pending indication for thatsignal will be reset. If the value of thesi_code member isSI_NOINFO, only thesi_signo member ofsiginfo_t is meaningful, and the value ofall other members is unspecified.
Thesigtimedwait() function behaves the same assigwaitinfo() except that ifnone of the signals specified byset are pending,sigtimedwait() waits forthe time interval specified in thetimespec structure referenced bytimeout. If thetimespec structure pointed to bytimeout is zero-valued and if none ofthe signals specified byset are pending, thensigtimedwait() returns immediately with anerror. Iftimeout is theNULL pointer, the behavior is unspecified.
If, whilesigwaitinfo() orsigtimedwait() is waiting, a signal occurs which iseligible for delivery (that is, not blocked by the process signal mask),that signal is handled asynchronously and the wait is interrupted.
Upon successful completion (that is, one of the signals specified bysetis pending or is generated)sigwaitinfo() andsigtimedwait() will return the selectedsignal number. Otherwise, the function returns-1 and setserrno to indicate theerror.
Thesigwaitinfo() andsigtimedwait() functions will fail if:
The wait was interrupted by an unblocked, caught signal.
Thesigwaitinfo() andsigtimedwait() functions are not supported.
Thesigtimedwait() function will fail if:
No signal specified byset was generated within the specified timeout period.
Thesigwaitinfo() andsigtimedwait() functions may fail if:
Theset,info, ortimeout argument points to an invalid address.
Thesigtimedwait() function may fail if:
Thetimeout argument specified atv_nsec value less than zero or greater than or equal to 1000 million. The system only checks for this error if no signal is pending inset and it is necessary to wait.
Seeattributes(5) for descriptions of the following attributes:
|
time(2),sigqueue(3C),siginfo.h(3HEAD),signal.h(3HEAD),time.h(3HEAD),attributes(5),standards(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |