Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-05-21 19:51:31 +00:00
Code Issues Projects Releases Wiki Activity
musl/src/thread/pthread_attr_setdetachstate.c

9 lines
159 B
C
Raw Normal View History

initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
#include "pthread_impl.h"
int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
{
reject invalid attribute settings note that this is a pedantic conformance issue and waste of code. it only affects broken code or code that is probing for conformance.
2011-03-07 15:46:37 -05:00
if (state > 1U) return EINVAL;
reorganize pthread data structures and move the definitions to alltypes.h this allows sys/types.h to provide the pthread types, as required by POSIX. this design also facilitates forcing ABI-compatible sizes in the arch-specific alltypes.h, while eliminating the need for developers changing the internals of the pthread types to poke around with arch-specific headers they may not be able to test.
2011-02-17 17:16:20 -05:00
a->_a_detach = state;
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 62ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API