projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
aa0ddcdd316341ec0ab7a685e2e84a5a8a2b149b
[musl]
/
src
/
thread
/
pthread_setcancelstate.c
1
#include "pthread_impl.h"
2
3
int pthread_setcancelstate(int new, int *old)
4
{
5
struct pthread *self = pthread_self();
6
if (old) *old = self->canceldisable;
7
if (new > 1U) return EINVAL;
8
self->canceldisable = new;
9
return 0;
10
}