about summary refs log tree commit diff
path: root/sysdeps
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 /sysdeps
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.
Diffstat (limited to 'sysdeps')
-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
10 files changed, 20 insertions, 6 deletions
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)