X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_setcancelstate.c;h=822a1398914168034c33652adf0512cf142562aa;hb=102f6a01e249ce4495f1119ae6d963a2a4a53ce5;hp=060bcdccb08f219009d3affa461f17a6c77ca60d;hpb=dab441aea240f3b7c18a26d2ef51979ea36c301c;p=musl diff --git a/src/thread/pthread_setcancelstate.c b/src/thread/pthread_setcancelstate.c index 060bcdcc..822a1398 100644 --- a/src/thread/pthread_setcancelstate.c +++ b/src/thread/pthread_setcancelstate.c @@ -1,11 +1,13 @@ #include "pthread_impl.h" -int pthread_setcancelstate(int new, int *old) +int __pthread_setcancelstate(int new, int *old) { - if (new > 1U) return EINVAL; + if (new > 2U) return EINVAL; if (!libc.has_thread_pointer) return ENOSYS; struct pthread *self = __pthread_self(); if (old) *old = self->canceldisable; self->canceldisable = new; return 0; } + +weak_alias(__pthread_setcancelstate, pthread_setcancelstate);