diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_attr_getdetachstate.c')
-rw-r--r-- | mdk-stage1/dietlibc/libpthread/pthread_attr_getdetachstate.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_attr_getdetachstate.c b/mdk-stage1/dietlibc/libpthread/pthread_attr_getdetachstate.c new file mode 100644 index 000000000..ccdfc0e47 --- /dev/null +++ b/mdk-stage1/dietlibc/libpthread/pthread_attr_getdetachstate.c @@ -0,0 +1,14 @@ +#include <unistd.h> +#include <errno.h> + +#include <pthread.h> +#include "thread_internal.h" + +int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) +{ + __THREAD_INIT(); + + *detachstate=attr->__detachstate; + return 0; +} + |