12345678910111213141516171819202122232425262728293031323334353637 |
- #include <errno.h>
- #include <signal.h>
- #include <string.h>
- #undef sigwait
- int attribute_hidden __sigwait (const sigset_t *set, int *sig)
- {
- int ret = 1;
- if ((ret = sigwaitinfo(set, NULL)) != -1) {
- *sig = ret;
- return 0;
- }
- return 1;
- }
- weak_alias(__sigwait, sigwait)
|