summaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutexattr_getpshared.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-11 16:08:38 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-11 16:08:38 -0500
commitc4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79 (patch)
treefb09ffd21bf934a0bf36e6fc583726c07bf43e96 /src/thread/pthread_mutexattr_getpshared.c
parent7df42e8744d384c975b28192f66ab4c5e4c1fd90 (diff)
downloadmusl-c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79.tar.gz
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_mutexattr_getpshared.c')
-rw-r--r--src/thread/pthread_mutexattr_getpshared.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/thread/pthread_mutexattr_getpshared.c b/src/thread/pthread_mutexattr_getpshared.c
deleted file mode 100644
index e7340b1a..00000000
--- a/src/thread/pthread_mutexattr_getpshared.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "pthread_impl.h"
-
-int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)
-{
- *pshared = *a>>31;
- return 0;
-}