diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-11 16:08:38 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-11 16:08:38 -0500 |
commit | c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79 (patch) | |
tree | fb09ffd21bf934a0bf36e6fc583726c07bf43e96 /src/thread/pthread_attr_getstacksize.c | |
parent | 7df42e8744d384c975b28192f66ab4c5e4c1fd90 (diff) | |
download | musl-c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79.tar.gz musl-c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79.tar.bz2 musl-c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79.tar.xz musl-c4a35f8c2a4b1a7e62a4b9e5b2748fb4fbcace79.zip |
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_getstacksize.c')
-rw-r--r-- | src/thread/pthread_attr_getstacksize.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/thread/pthread_attr_getstacksize.c b/src/thread/pthread_attr_getstacksize.c deleted file mode 100644 index f69cc1e6..00000000 --- a/src/thread/pthread_attr_getstacksize.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "pthread_impl.h" - -int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -{ - *size = a->_a_stacksize + DEFAULT_STACK_SIZE; - return 0; -} |