提交 7fd39952 编写于 作者: R Rich Felker

pthread_create need not set errno

上级 7e795ca7
......@@ -195,7 +195,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
unsigned char *map, *stack, *tsd;
static const pthread_attr_t default_attr;
if (!self) return errno = ENOSYS;
if (!self) return ENOSYS;
if (!init && ++init) init_threads();
if (!attr) attr = &default_attr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册