From f3b4c74b53903b32d1b852b381ae22b140b7b05b Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 26 Nov 2005 14:14:05 +0000 Subject: 100 JUMP relocs less (remaining 431) by hiding internally used ones --- libc/unistd/getopt.c | 4 ++-- libc/unistd/sysconf.c | 5 ++--- libc/unistd/usershell.c | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'libc/unistd') diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c index 0dc0e0509..ed5237dc5 100644 --- a/libc/unistd/getopt.c +++ b/libc/unistd/getopt.c @@ -62,7 +62,7 @@ #include "getopt.h" extern int _getopt_internal (int argc, char *const *argv, const char *optstring, - const struct option *longopts, int *longind, int long_only); + const struct option *longopts, int *longind, int long_only) attribute_hidden; /* For communication from `getopt' to the caller. @@ -311,7 +311,7 @@ static const char *_getopt_initialize (int argc, char *const * argv, const char If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ -int _getopt_internal (int argc, char *const *argv, const char *optstring, +int attribute_hidden _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) { int print_errors = opterr; diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 902697b45..4c51c0c2b 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -16,6 +16,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define getpagesize __libc_getpagesize + #define _XOPEN_SOURCE 500 #include #include @@ -37,9 +39,6 @@ #error __UCLIBC_CLK_TCK_CONST not defined! #endif -extern int getpagesize (void); -extern int getdtablesize (void); - /***********************************************************************/ /* * Manuel Novoa III Jan 2001 diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c index 96ceaca51..323ed6a55 100644 --- a/libc/unistd/usershell.c +++ b/libc/unistd/usershell.c @@ -30,6 +30,8 @@ * November 2002, Erik Andersen */ +#define __fsetlocking __libc_fsetlocking + #define _GNU_SOURCE #include #include -- cgit v1.2.3