about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-04 03:30:56 +0000
committerRoland McGrath <roland@gnu.org>2002-08-04 03:30:56 +0000
commitc41f555e0c91588469586cb7fef23907582b2595 (patch)
tree61451cb29fdd0cc6aae97b46d61191c4fae53569
parent5517266d33193ca13de097fa2775661c3bc6dac0 (diff)
downloadglibc-c41f555e0c91588469586cb7fef23907582b2595.tar.gz
glibc-c41f555e0c91588469586cb7fef23907582b2595.tar.xz
glibc-c41f555e0c91588469586cb7fef23907582b2595.zip
* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
	execl, execle, execlp, execvp, getpid, getsid.
	* sysdeps/generic/alarm.c: Add libc_hidden_def.
	* sysdeps/unix/alarm.c: Likewise.
	* posix/confstr.c: Likewise.
	* posix/execvp.c: Likewise.
	* posix/execlp.c: Likewise.
	* posix/execle.c: Likewise.
	* posix/execl.c: Likewise.
	* sysdeps/generic/getsid.c: Likewise.
	* sysdeps/mach/hurd/getsid.c: Likewise.
	* sysdeps/generic/getpid.c: Add libc_hidden_weak.
	* sysdeps/mach/hurd/getpid.c: Likewise.

	* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
	qecvt_r, qfcvt_r, lrand48_r.
	* misc/efgcvt_r.c: Add libc_hidden_def.

	* include/wordexp.h: Use libc_hidden_proto for wordfree.
	* sysdeps/generic/wordexp.c: Add libc_hidden_def.

	* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
	* locale/nl_langinfo.c: Add libc_hidden_def.

	* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
	* sysdeps/generic/glob.c: Add libc_hidden_def.
	* sysdeps/generic/glob64.c: Likewise.
	* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
-rw-r--r--ChangeLog29
-rw-r--r--include/glob.h4
-rw-r--r--include/langinfo.h6
-rw-r--r--include/stdlib.h5
-rw-r--r--include/unistd.h11
-rw-r--r--include/wordexp.h6
-rw-r--r--locale/nl_langinfo.c3
-rw-r--r--misc/efgcvt_r.c4
-rw-r--r--posix/confstr.c3
-rw-r--r--posix/execl.c3
-rw-r--r--posix/execle.c3
-rw-r--r--posix/execlp.c3
-rw-r--r--posix/execvp.c3
-rw-r--r--sysdeps/generic/alarm.c4
-rw-r--r--sysdeps/generic/getpid.c1
-rw-r--r--sysdeps/generic/getsid.c3
-rw-r--r--sysdeps/generic/glob.c6
-rw-r--r--sysdeps/generic/glob64.c3
-rw-r--r--sysdeps/generic/wordexp.c1
-rw-r--r--sysdeps/mach/hurd/getpid.c1
-rw-r--r--sysdeps/mach/hurd/getsid.c3
-rw-r--r--sysdeps/unix/alarm.c3
-rw-r--r--sysdeps/wordsize-64/glob.c1
23 files changed, 97 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bbbbd8c5f..4153a6affc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,34 @@
 2002-08-03  Roland McGrath  <roland@redhat.com>
 
+	* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
+	execl, execle, execlp, execvp, getpid, getsid.
+	* sysdeps/generic/alarm.c: Add libc_hidden_def.
+	* sysdeps/unix/alarm.c: Likewise.
+	* posix/confstr.c: Likewise.
+	* posix/execvp.c: Likewise.
+	* posix/execlp.c: Likewise.
+	* posix/execle.c: Likewise.
+	* posix/execl.c: Likewise.
+	* sysdeps/generic/getsid.c: Likewise.
+	* sysdeps/mach/hurd/getsid.c: Likewise.
+	* sysdeps/generic/getpid.c: Add libc_hidden_weak.
+	* sysdeps/mach/hurd/getpid.c: Likewise.
+
+	* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
+	qecvt_r, qfcvt_r, lrand48_r.
+	* misc/efgcvt_r.c: Add libc_hidden_def.
+
+	* include/wordexp.h: Use libc_hidden_proto for wordfree.
+	* sysdeps/generic/wordexp.c: Add libc_hidden_def.
+
+	* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
+	* locale/nl_langinfo.c: Add libc_hidden_def.
+
+	* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
+	* sysdeps/generic/glob.c: Add libc_hidden_def.
+	* sysdeps/generic/glob64.c: Likewise.
+	* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
+
 	* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
 
 	* elf/Makefile (CFLAGS-vismod2.c): New variable.
diff --git a/include/glob.h b/include/glob.h
index d248cf6bc1..d83cf5ce53 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -1,6 +1,10 @@
 #ifndef	_GLOB_H
 #include <posix/glob.h>
 
+libc_hidden_proto (glob)
+libc_hidden_proto (globfree)
+libc_hidden_proto (globfree64)
+
 /* Now define the internal interfaces.  */
 extern int __glob_pattern_p (__const char *__pattern, int __quote);
 extern int __glob64 (__const char *__pattern, int __flags,
diff --git a/include/langinfo.h b/include/langinfo.h
index 2a81c6ddaf..82ff070c89 100644
--- a/include/langinfo.h
+++ b/include/langinfo.h
@@ -1 +1,7 @@
+#ifndef _LANGINFO_H
+
 #include <locale/langinfo.h>
+
+libc_hidden_proto (nl_langinfo)
+
+#endif
diff --git a/include/stdlib.h b/include/stdlib.h
index c681aecf65..48ff8a034d 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -14,6 +14,11 @@ libc_hidden_proto (abort)
 libc_hidden_proto (getenv)
 libc_hidden_proto (bsearch)
 libc_hidden_proto (qsort)
+libc_hidden_proto (ecvt_r)
+libc_hidden_proto (fcvt_r)
+libc_hidden_proto (qecvt_r)
+libc_hidden_proto (qfcvt_r)
+libc_hidden_proto (lrand48_r)
 libc_hidden_proto (__secure_getenv)
 libc_hidden_proto (__strtof_internal)
 libc_hidden_proto (__strtod_internal)
diff --git a/include/unistd.h b/include/unistd.h
index b25a3b808d..10fd603e17 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,6 +1,17 @@
 #ifndef _UNISTD_H
 # include <posix/unistd.h>
 
+libc_hidden_proto (_exit)
+libc_hidden_proto (alarm)
+libc_hidden_proto (confstr)
+libc_hidden_proto (execl)
+libc_hidden_proto (execle)
+libc_hidden_proto (execlp)
+libc_hidden_proto (execvp)
+libc_hidden_proto (getpid)
+libc_hidden_proto (getsid)
+
+
 /* Now define the internal interfaces.  */
 extern int __access (__const char *__name, int __type);
 extern int __euidaccess (__const char *__name, int __type);
diff --git a/include/wordexp.h b/include/wordexp.h
index 64e036e062..27ae0454c5 100644
--- a/include/wordexp.h
+++ b/include/wordexp.h
@@ -1 +1,7 @@
+#ifndef _WORDEXP_H
+
 #include <posix/wordexp.h>
+
+libc_hidden_proto (wordfree)
+
+#endif
diff --git a/locale/nl_langinfo.c b/locale/nl_langinfo.c
index acaa50046e..34b67d0646 100644
--- a/locale/nl_langinfo.c
+++ b/locale/nl_langinfo.c
@@ -58,3 +58,6 @@ nl_langinfo (item)
   /* Return the string for the specified item.  */
   return (char *) data->values[index].string;
 }
+#ifndef USE_IN_EXTENDED_LOCALE_MODEL
+libc_hidden_def (nl_langinfo)
+#endif
diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c
index 85aa1bd735..d93dda55af 100644
--- a/misc/efgcvt_r.c
+++ b/misc/efgcvt_r.c
@@ -1,5 +1,5 @@
 /* Compatibility functions for floating point formatting, reentrant versions.
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,98,99,2000,01,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -151,6 +151,7 @@ APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
 
   return 0;
 }
+libc_hidden_def (APPEND (FUNC_PREFIX, fcvt_r))
 
 int
 APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
@@ -212,3 +213,4 @@ APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
   *decpt += exponent;
   return 0;
 }
+libc_hidden_def (APPEND (FUNC_PREFIX, ecvt_r))
diff --git a/posix/confstr.c b/posix/confstr.c
index f41d0fcd51..fe5f38c933 100644
--- a/posix/confstr.c
+++ b/posix/confstr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,96,97,2000,01,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -157,3 +157,4 @@ confstr (name, buf, len)
     }
   return string_len;
 }
+libc_hidden_def (confstr)
diff --git a/posix/execl.c b/posix/execl.c
index 72748a456f..62fd45db58 100644
--- a/posix/execl.c
+++ b/posix/execl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,97,98,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -75,3 +75,4 @@ execl (const char *path, const char *arg, ...)
 
   return __execve (path, (char *const *) argv, __environ);
 }
+libc_hidden_def (execl)
diff --git a/posix/execle.c b/posix/execle.c
index 8418381c2a..2199ebeb74 100644
--- a/posix/execle.c
+++ b/posix/execle.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991,97,98,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -73,3 +73,4 @@ execle (const char *path, const char *arg, ...)
 
   return __execve (path, (char *const *) argv, (char *const *) envp);
 }
+libc_hidden_def (execle)
diff --git a/posix/execlp.c b/posix/execlp.c
index 950705604c..ba8fc74c90 100644
--- a/posix/execlp.c
+++ b/posix/execlp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 93, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,98,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -72,3 +72,4 @@ execlp (const char *file, const char *arg, ...)
 
   return execvp (file, (char *const *) argv);
 }
+libc_hidden_def (execlp)
diff --git a/posix/execvp.c b/posix/execvp.c
index a9621d284e..6e919526d7 100644
--- a/posix/execvp.c
+++ b/posix/execvp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,95,96,97,98,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -156,3 +156,4 @@ execvp (file, argv)
   /* Return the error from the last attempt (probably ENOENT).  */
   return -1;
 }
+libc_hidden_def (execvp)
diff --git a/sysdeps/generic/alarm.c b/sysdeps/generic/alarm.c
index bcde9a5d62..1f0cceb58e 100644
--- a/sysdeps/generic/alarm.c
+++ b/sysdeps/generic/alarm.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,97,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@ alarm (seconds)
   __set_errno (ENOSYS);
   return 0;
 }
-
+libc_hidden_def (alarm)
 
 stub_warning (alarm)
 #include <stub-tag.h>
diff --git a/sysdeps/generic/getpid.c b/sysdeps/generic/getpid.c
index 26207961e9..c1c91fede7 100644
--- a/sysdeps/generic/getpid.c
+++ b/sysdeps/generic/getpid.c
@@ -30,4 +30,5 @@ libc_hidden_def (__getpid)
 stub_warning (getpid)
 
 weak_alias (__getpid, getpid)
+libc_hidden_weak (getpid)
 #include <stub-tag.h>
diff --git a/sysdeps/generic/getsid.c b/sysdeps/generic/getsid.c
index 1c12cd5197..eb7e60fa42 100644
--- a/sysdeps/generic/getsid.c
+++ b/sysdeps/generic/getsid.c
@@ -1,5 +1,5 @@
 /* getsid -- Return session ID of a process.  Stub version.
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,5 +27,6 @@ getsid (pid_t pid)
   __set_errno (ENOSYS);
   return (pid_t) -1;
 }
+libc_hidden_def (getsid)
 stub_warning (getsid)
 #include <stub-tag.h>
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c
index 4a56f90f63..aca6e898a1 100644
--- a/sysdeps/generic/glob.c
+++ b/sysdeps/generic/glob.c
@@ -1064,6 +1064,9 @@ glob (pattern, flags, errfunc, pglob)
 
   return 0;
 }
+#ifdef _LIBC
+libc_hidden_def (glob)
+#endif
 
 
 #if !defined _LIBC || !defined GLOB_ONLY_P
@@ -1082,6 +1085,9 @@ globfree (pglob)
       free ((__ptr_t) pglob->gl_pathv);
     }
 }
+#ifdef _LIBC
+libc_hidden_def (globfree)
+#endif
 
 
 /* Do a collated comparison of A and B.  */
diff --git a/sysdeps/generic/glob64.c b/sysdeps/generic/glob64.c
index b654916885..d78b513e37 100644
--- a/sysdeps/generic/glob64.c
+++ b/sysdeps/generic/glob64.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -47,6 +47,7 @@ void
 globfree64 (glob64_t *pglob)
 {
 }
+libc_hidden_def (globfree64);
 
 stub_warning (glob64)
 #include <stub-tag.h>
diff --git a/sysdeps/generic/wordexp.c b/sysdeps/generic/wordexp.c
index e3e31451c1..691c1101aa 100644
--- a/sysdeps/generic/wordexp.c
+++ b/sysdeps/generic/wordexp.c
@@ -2216,6 +2216,7 @@ wordfree (wordexp_t *pwordexp)
       pwordexp->we_wordv = NULL;
     }
 }
+libc_hidden_def (wordfree)
 
 /*
  * wordexp()
diff --git a/sysdeps/mach/hurd/getpid.c b/sysdeps/mach/hurd/getpid.c
index 5b21ac5a99..a8324f2918 100644
--- a/sysdeps/mach/hurd/getpid.c
+++ b/sysdeps/mach/hurd/getpid.c
@@ -29,3 +29,4 @@ __getpid ()
 }
 libc_hidden_def (__getpid)
 weak_alias (__getpid, getpid)
+libc_hidden_weak (getpid)
diff --git a/sysdeps/mach/hurd/getsid.c b/sysdeps/mach/hurd/getsid.c
index fad75ef4a4..57c10c58b7 100644
--- a/sysdeps/mach/hurd/getsid.c
+++ b/sysdeps/mach/hurd/getsid.c
@@ -1,5 +1,5 @@
 /* getsid -- Return session ID of a process.  Hurd version.
-   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995,97,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,3 +33,4 @@ getsid (pid_t pid)
     return (pid_t) __hurd_fail (err);
   return sid;
 }
+libc_hidden_def (getsid)
diff --git a/sysdeps/unix/alarm.c b/sysdeps/unix/alarm.c
index 0564acc019..ae77782c54 100644
--- a/sysdeps/unix/alarm.c
+++ b/sysdeps/unix/alarm.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,97,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -45,3 +45,4 @@ alarm (seconds)
     ++retval;
   return retval;
 }
+libc_hidden_def (alarm)
diff --git a/sysdeps/wordsize-64/glob.c b/sysdeps/wordsize-64/glob.c
index b6da989e57..ad4d7a4a77 100644
--- a/sysdeps/wordsize-64/glob.c
+++ b/sysdeps/wordsize-64/glob.c
@@ -5,3 +5,4 @@
 #undef globfree64
 weak_alias (glob, glob64)
 weak_alias (globfree, globfree64)
+libc_hidden_weak (globfree64)