mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Introduce sigtimedwait() on Windows
This commit is contained in:
parent
37e2660c7f
commit
c260144843
17 changed files with 280 additions and 130 deletions
|
@ -21,14 +21,17 @@
|
|||
/**
|
||||
* Waits for signal synchronously.
|
||||
*
|
||||
* See sigtimedwait() for further details.
|
||||
*
|
||||
* @param set is signals for which we'll be waiting
|
||||
* @param info if not null shall receive info about signal
|
||||
* @return signal number on success, or -1 w/ errno
|
||||
* @raise EINTR if an asynchronous signal was delivered instead
|
||||
* @raise ECANCELED if thread was cancelled in masked mode
|
||||
* @raise ENOSYS on OpenBSD, XNU, and Windows
|
||||
* @raise ENOSYS on OpenBSD, XNU, and Metal
|
||||
* @see sigtimedwait()
|
||||
* @cancelationpoint
|
||||
* @norestart
|
||||
*/
|
||||
int sigwaitinfo(const sigset_t *mask, siginfo_t *si) {
|
||||
return sigtimedwait(mask, si, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue