Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/sigwaitinfo.2
Show All 21 Lines | |||||
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||||
.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||||
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||||
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||||
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd September 27, 2012 | .Dd April 21, 2022 | ||||
.Dt SIGTIMEDWAIT 2 | .Dt SIGTIMEDWAIT 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm sigtimedwait , sigwaitinfo | .Nm sigtimedwait , sigwaitinfo | ||||
.Nd "wait for queued signals (REALTIME)" | .Nd "wait for queued signals (REALTIME)" | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
Show All 26 Lines | |||||
.Fa set | .Fa set | ||||
are pending, then | are pending, then | ||||
.Fn sigtimedwait | .Fn sigtimedwait | ||||
returns immediately with an error. | returns immediately with an error. | ||||
If | If | ||||
.Fa timeout | .Fa timeout | ||||
is the | is the | ||||
.Dv NULL | .Dv NULL | ||||
pointer, the behavior is unspecified. | pointer, | ||||
.Fn sigtimedwait | |||||
blocks indefinitely. | |||||
.Dv CLOCK_MONOTONIC | .Dv CLOCK_MONOTONIC | ||||
clock is used to measure the time interval specified by the | clock is used to measure the time interval specified by the | ||||
.Fa timeout | .Fa timeout | ||||
argument. | argument. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn sigwaitinfo | .Fn sigwaitinfo | ||||
system call selects the pending signal from the set specified by | system call selects the pending signal from the set specified by | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
.Xr siginfo 3 | .Xr siginfo 3 | ||||
.Sh STANDARDS | .Sh STANDARDS | ||||
The | The | ||||
.Fn sigtimedwait | .Fn sigtimedwait | ||||
and | and | ||||
.Fn sigwaitinfo | .Fn sigwaitinfo | ||||
system calls conform to | system calls conform to | ||||
.St -p1003.1-96 . | .St -p1003.1-96 . | ||||
POSIX | |||||
leaves the behavior of | |||||
.Fn sigtimedwait | |||||
with a | |||||
.Dv NULL | |||||
.Fa timeout | |||||
pointer unspecified. |