summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/getopt.c4
-rw-r--r--libc/unistd/sysconf.c5
-rw-r--r--libc/unistd/usershell.c2
3 files changed, 6 insertions, 5 deletions
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 <features.h>
#include <errno.h>
@@ -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 <andersen@codepoet.org>
*/
+#define __fsetlocking __libc_fsetlocking
+
#define _GNU_SOURCE
#include <sys/param.h>
#include <sys/file.h>