path: root/src/thread/pthread_attr_getscope.c
diff options
authorRich Felker <>2012-11-11 16:08:38 -0500
committerRich Felker <>2012-11-11 16:08:38 -0500
commitc4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79 (patch)
treefb09ffd21bf934a0bf36e6fc583726c07bf43e96 /src/thread/pthread_attr_getscope.c
parent7df42e8744d384c975b28192f66ab4c5e4c1fd90 (diff)
debloat src/thread tree but putting lots of junk in one file
POSIX includes mostly-useless attribute-get functions for each attribute-set function, presumably out of some object-oriented dogmatism. the get functions are not useful with the simple idiomatic usage of attributes. there are of course possible valid uses of them (like writing wrappers for pthread init functions that perform special actions on the presence of certain attributes), but considering how tiny these functions are anyway, little is lost by putting them all in one file, and some build-time cost and archive-file-size benefits are achieved.
Diffstat (limited to 'src/thread/pthread_attr_getscope.c')
1 files changed, 0 insertions, 7 deletions
diff --git a/src/thread/pthread_attr_getscope.c b/src/thread/pthread_attr_getscope.c
deleted file mode 100644
index b8dfd123..00000000
--- a/src/thread/pthread_attr_getscope.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "pthread_impl.h"
-int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope)
- return 0;