mirror of git://git.musl-libc.org/musl
pthread_create need not set errno
This commit is contained in:
parent
7e795ca7ed
commit
7fd3995282
|
@ -195,7 +195,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
|
||||||
unsigned char *map, *stack, *tsd;
|
unsigned char *map, *stack, *tsd;
|
||||||
static const pthread_attr_t default_attr;
|
static const pthread_attr_t default_attr;
|
||||||
|
|
||||||
if (!self) return errno = ENOSYS;
|
if (!self) return ENOSYS;
|
||||||
if (!init && ++init) init_threads();
|
if (!init && ++init) init_threads();
|
||||||
|
|
||||||
if (!attr) attr = &default_attr;
|
if (!attr) attr = &default_attr;
|
||||||
|
|
Loading…
Reference in New Issue