about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt_int.h15
-rw-r--r--posix/glob-lstat-compat.c1
-rw-r--r--posix/glob.c1
-rw-r--r--posix/glob64-lstat-compat.c2
-rw-r--r--posix/glob64.c8
-rw-r--r--posix/glob_pattern_p.c1
6 files changed, 20 insertions, 8 deletions
diff --git a/posix/getopt_int.h b/posix/getopt_int.h
index 502250388d..d05de32971 100644
--- a/posix/getopt_int.h
+++ b/posix/getopt_int.h
@@ -21,11 +21,15 @@
 #define _GETOPT_INT_H	1
 
 #include <getopt.h>
+#ifndef attribute_hidden
+# define attribute_hidden /* nothing */
+#endif
 
 extern int _getopt_internal (int ___argc, char **___argv,
 			     const char *__shortopts,
 			     const struct option *__longopts, int *__longind,
-			     int __long_only, int __posixly_correct);
+			     int __long_only, int __posixly_correct)
+  attribute_hidden;
 
 
 /* Reentrant versions which can handle parsing multiple argument
@@ -102,17 +106,20 @@ extern int _getopt_internal_r (int ___argc, char **___argv,
 			       const char *__shortopts,
 			       const struct option *__longopts, int *__longind,
 			       int __long_only, struct _getopt_data *__data,
-			       int __posixly_correct);
+			       int __posixly_correct)
+  attribute_hidden;
 
 extern int _getopt_long_r (int ___argc, char **___argv,
 			   const char *__shortopts,
 			   const struct option *__longopts, int *__longind,
-			   struct _getopt_data *__data);
+			   struct _getopt_data *__data)
+  attribute_hidden;
 
 extern int _getopt_long_only_r (int ___argc, char **___argv,
 				const char *__shortopts,
 				const struct option *__longopts,
 				int *__longind,
-				struct _getopt_data *__data);
+				struct _getopt_data *__data)
+  attribute_hidden;
 
 #endif /* getopt_int.h */
diff --git a/posix/glob-lstat-compat.c b/posix/glob-lstat-compat.c
index f78b02f909..368a5f798e 100644
--- a/posix/glob-lstat-compat.c
+++ b/posix/glob-lstat-compat.c
@@ -32,5 +32,6 @@
 
 # include <posix/glob.c>
 
+libc_hidden_def (__glob_lstat_compat)
 compat_symbol (libc, __glob_lstat_compat, glob, GLIBC_2_0);
 #endif
diff --git a/posix/glob.c b/posix/glob.c
index 8444b2f79e..ffcb8d81d6 100644
--- a/posix/glob.c
+++ b/posix/glob.c
@@ -1162,6 +1162,7 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
 }
 #if defined _LIBC && !defined __glob
 versioned_symbol (libc, __glob, glob, GLIBC_2_27);
+libc_hidden_def (__glob)
 libc_hidden_ver (__glob, glob)
 #endif
 
diff --git a/posix/glob64-lstat-compat.c b/posix/glob64-lstat-compat.c
index fe7b3e0bdc..8036d03564 100644
--- a/posix/glob64-lstat-compat.c
+++ b/posix/glob64-lstat-compat.c
@@ -31,6 +31,6 @@
 # define GLOB_NO_LSTAT
 
 # include <posix/glob64.c>
-
+libc_hidden_def (__glob64_lstat_compat)
 compat_symbol (libc, __glob64_lstat_compat, glob64, GLIBC_2_0);
 #endif
diff --git a/posix/glob64.c b/posix/glob64.c
index 6285a22fa8..d3f2afe90c 100644
--- a/posix/glob64.c
+++ b/posix/glob64.c
@@ -34,8 +34,8 @@
    Otherwise, `glob' returns zero.  */
 int
 GLOB_ATTRIBUTE
-glob64 (const char *pattern, int flags,
-	int (*errfunc) (const char *, int), glob64_t *pglob)
+__glob64 (const char *pattern, int flags,
+          int (*errfunc) (const char *, int), glob64_t *pglob)
 {
   if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
     {
@@ -46,6 +46,8 @@ glob64 (const char *pattern, int flags,
   __set_errno (ENOSYS);
   return GLOB_NOSYS;
 }
-libc_hidden_def (glob64)
+libc_hidden_def (__glob64)
+weak_alias (__glob64, glob64)
+libc_hidden_weak (glob64)
 
 stub_warning (glob64)
diff --git a/posix/glob_pattern_p.c b/posix/glob_pattern_p.c
index 0f72d186c8..c9f03fb21d 100644
--- a/posix/glob_pattern_p.c
+++ b/posix/glob_pattern_p.c
@@ -30,4 +30,5 @@ __glob_pattern_p (const char *pattern, int quote)
 {
   return __glob_pattern_type (pattern, quote) == GLOBPAT_SPECIAL;
 }
+libc_hidden_def (__glob_pattern_p)
 weak_alias (__glob_pattern_p, glob_pattern_p)