From c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 11 Nov 2012 16:08:38 -0500 Subject: 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. --- src/thread/pthread_mutexattr_getrobust.c | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 src/thread/pthread_mutexattr_getrobust.c (limited to 'src/thread/pthread_mutexattr_getrobust.c') diff --git a/src/thread/pthread_mutexattr_getrobust.c b/src/thread/pthread_mutexattr_getrobust.c deleted file mode 100644 index 4d176f20..00000000 --- a/src/thread/pthread_mutexattr_getrobust.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "pthread_impl.h" - -int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -{ - *robust = *a / 4U % 2; - return 0; -} -- cgit v1.2.1