mirror of
https://github.com/fluencelabs/musl
synced 2025-05-21 11:41:29 +00:00
note that this is a pedantic conformance issue and waste of code. it only affects broken code or code that is probing for conformance.
9 lines
159 B
C
9 lines
159 B
C
#include "pthread_impl.h"
|
|
|
|
int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
|
|
{
|
|
if (state > 1U) return EINVAL;
|
|
a->_a_detach = state;
|
|
return 0;
|
|
}
|