X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftime%2Ftimer_create.c;h=6cc2bcf07342d3a2a8b727c0b0da51a506883345;hp=813678a1608360381197c77c93eb5183a154f8ec;hb=ccc7b4c3a17ade90de71e1e0f44deebbffd646e6;hpb=2f437040e7911d9bef239588ea7ed6f4b9102922 diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 813678a1..6cc2bcf0 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -1,4 +1,5 @@ #include +#include #include "pthread_impl.h" struct ksigevent { @@ -52,7 +53,7 @@ static void install_handler() }; __libc_sigaction(SIGTIMER, &sa, 0); __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, - SIGTIMER_SET, 0, __SYSCALL_SSLEN); + SIGTIMER_SET, 0, _NSIG/8); } static void *start(void *arg) @@ -76,7 +77,7 @@ static void *start(void *arg) return 0; } -int timer_create(clockid_t clk, struct sigevent *evp, timer_t *res) +int timer_create(clockid_t clk, struct sigevent *restrict evp, timer_t *restrict res) { static pthread_once_t once = PTHREAD_ONCE_INIT; pthread_t td;