projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove standalone syscall cruft
[oweals/musl.git]
/
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 ((unsigned)new > 1) return EINVAL;
8
self->canceldisable = new;
9
return 0;
10
}