Hi @misc,

reading the standard, C11 introduced the optional threads.h header
(7.26). NetBSD, FreeBSD and OpenBSD do not provide it. glibc has it.
Other non POSIX OSes also have it. To make a long story short. Would it
make sense to add it to libc in addition to the POSIX threads? Would
make things easier porting recently written software using those
interfaces from non POSIX OSes to the BSDs. So add that threads.h file
with a corresponding implementation like is done in that rthreads
directory. Wanted to ask first, before starting any work on it. Does
that make sense? POSIX does not mention it. It has pthreads, of course.
Any thoughts? 

Regards,
--  
Christian

$0x02 grep -ri "__STDC_NO_THREADS__" /usr/src
/usr/src/gnu/llvm/clang/lib/Basic/Targets/OSTargets.cpp:  
Builder.defineMacro("__STDC_NO_THREADS__");
/usr/src/gnu/llvm/clang/lib/Basic/Targets/OSTargets.cpp:  
Builder.defineMacro("__STDC_NO_THREADS__");
/usr/src/gnu/llvm/clang/lib/Basic/Targets/OSTargets.h:      
Builder.defineMacro("__STDC_NO_THREADS__");
/usr/src/gnu/llvm/clang/lib/Basic/Targets/OSTargets.h:    
Builder.defineMacro("__STDC_NO_THREADS__");
/usr/src/gnu/llvm/clang/lib/Basic/Targets/OSTargets.h:      
Builder.defineMacro("__STDC_NO_THREADS__");

Reply via email to