RTEMS Logo

RTEMS 4.6.1 On-Line Library


Signal Manager sigtimedwait - Synchronously Accept a Signal with Timeout

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

2.4.16: sigtimedwait - Synchronously Accept a Signal with Timeout

CALLING SEQUENCE:

#include <signal.h>

int sigtimedwait(
  const sigset_t        *set,
  siginfo_t             *info,
  const struct timespec *timeout
);

STATUS CODES:

EAGAIN
Timed out while waiting for the specified signal set.
EINVAL
Nanoseconds field of the timeout argument is invalid.
EINTR
Signal interrupted this function.

DESCRIPTION:

This function selects a pending signal based on the set specified in set, atomically clears it from the set of pending signals, and returns information about that signal in info. The calling thread will block up to timeout waiting for the signal to arrive.

NOTES:

If timeout is NULL, then the calling thread will wait forever for the specified signal set.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation