aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-04 03:50:21 +0000
committerRoland McGrath <roland@gnu.org>2002-08-04 03:50:21 +0000
commita14f26ef6924a6795025f4193a3567b95b339b05 (patch)
tree45ba174eb4d5d12c46ae8244fc6b6ba4a92590c9
parentc41f555e0c91588469586cb7fef23907582b2595 (diff)
downloadglibc-a14f26ef6924a6795025f4193a3567b95b339b05.tar
glibc-a14f26ef6924a6795025f4193a3567b95b339b05.tar.gz
glibc-a14f26ef6924a6795025f4193a3567b95b339b05.tar.bz2
glibc-a14f26ef6924a6795025f4193a3567b95b339b05.zip
* include/sys/resource.h: Use libc_hidden_proto for getpriority,
setpriority. * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def. * sysdeps/unix/sysv/irix4/getpriority.c: Likewise. * sysdeps/mach/hurd/setpriority.c: Likewise. * sysdeps/mach/hurd/getpriority.c: Likewise. * sysdeps/generic/setpriority.c: Likewise. * sysdeps/generic/getpriority.c: Likewise. * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all. * malloc/mcheck.c: Add libc_hidden_def. * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r. * misc/hsearch_r.c: Add libc_hidden_def. * include/fnmatch.h: Use libc_hidden_proto for fnmatch. * posix/fnmatch.c: Add libc_hidden_weak.
-rw-r--r--ChangeLog18
-rw-r--r--include/fnmatch.h6
-rw-r--r--include/mcheck.h1
-rw-r--r--include/search.h2
-rw-r--r--include/sys/resource.h3
-rw-r--r--linuxthreads/ChangeLog11
-rw-r--r--malloc/mcheck.c3
-rw-r--r--misc/hsearch_r.c2
-rw-r--r--posix/fnmatch.c3
-rw-r--r--sysdeps/generic/getpriority.c3
-rw-r--r--sysdeps/generic/setpriority.c3
-rw-r--r--sysdeps/mach/hurd/getpriority.c1
-rw-r--r--sysdeps/mach/hurd/setpriority.c1
-rw-r--r--sysdeps/unix/sysv/irix4/getpriority.c3
-rw-r--r--sysdeps/unix/sysv/linux/getpriority.c3
15 files changed, 54 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 4153a6affc..50b36191f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,23 @@
2002-08-03 Roland McGrath <roland@redhat.com>
+ * include/sys/resource.h: Use libc_hidden_proto for getpriority,
+ setpriority.
+ * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
+ * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
+ * sysdeps/mach/hurd/setpriority.c: Likewise.
+ * sysdeps/mach/hurd/getpriority.c: Likewise.
+ * sysdeps/generic/setpriority.c: Likewise.
+ * sysdeps/generic/getpriority.c: Likewise.
+
+ * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
+ * malloc/mcheck.c: Add libc_hidden_def.
+
+ * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
+ * misc/hsearch_r.c: Add libc_hidden_def.
+
+ * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
+ * posix/fnmatch.c: Add libc_hidden_weak.
+
* 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.
diff --git a/include/fnmatch.h b/include/fnmatch.h
index b12b786df0..2cdad0a40f 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -1 +1,7 @@
+#ifndef _FNMATCH_H
+
#include <posix/fnmatch.h>
+
+libc_hidden_proto (fnmatch)
+
+#endif
diff --git a/include/mcheck.h b/include/mcheck.h
index aa91d87715..b0037a7107 100644
--- a/include/mcheck.h
+++ b/include/mcheck.h
@@ -3,5 +3,6 @@
#include <malloc/mcheck.h>
libc_hidden_proto (mcheck)
+libc_hidden_proto (mcheck_check_all)
#endif
diff --git a/include/search.h b/include/search.h
index 60bb59a39b..e82f02832b 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,6 +1,8 @@
#ifndef _SEARCH_H
#include <misc/search.h>
+libc_hidden_proto (hcreate_r)
+libc_hidden_proto (hdestroy_r)
libc_hidden_proto (hsearch_r)
libc_hidden_proto (lfind)
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 8877b35f2a..f9b819dbd0 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -1,6 +1,9 @@
#ifndef _SYS_RESOURCE_H
#include <resource/sys/resource.h>
+libc_hidden_proto (getpriority)
+libc_hidden_proto (setpriority)
+
/* Now define the internal interfaces. */
extern int __getrlimit (enum __rlimit_resource __resource,
struct rlimit *__rlimits);
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 95b2b916bb..2ff9fa7104 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,9 +1,12 @@
-2002-08-03 Ulrich Drepper <drepper@redhat.com>
-
- * sysdeps/pthread/bits/libc-tsd.h: Add _LIBC_TSD_KEY_LOCALE.
-
2002-08-02 Roland McGrath <roland@redhat.com>
+ * sysdeps/pthread/bits/libc-tsd.h (enum __libc_tsd_key_t):
+ Add _LIBC_TSD_KEY_LOCALE.
+ * manager.c (pthread_start_thread) [!(USE_TLS && HAVE___THREAD)]:
+ Call __uselocale to initialize our per-thread locale pointer to
+ the global one.
+ * pthread.c (__pthread_initialize_minimal): Likewise.
+
* sysdeps/i386/tls.h (TLS_DO_SET_THREAD_AREA): Add missing \s.
2002-08-02 Ulrich Drepper <drepper@redhat.com>
diff --git a/malloc/mcheck.c b/malloc/mcheck.c
index 9d9200d45d..c67636c289 100644
--- a/malloc/mcheck.c
+++ b/malloc/mcheck.c
@@ -133,6 +133,9 @@ mcheck_check_all ()
/* Turn checks on again. */
pedantic = 1;
}
+#ifdef _LIBC
+libc_hidden_def (mcheck_check_all)
+#endif
static void unlink_blk __P ((struct hdr *ptr));
static void
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c
index d7c604cc56..398f0b6dd9 100644
--- a/misc/hsearch_r.c
+++ b/misc/hsearch_r.c
@@ -94,6 +94,7 @@ hcreate_r (nel, htab)
/* everything went alright */
return 1;
}
+libc_hidden_def (hcreate_r)
/* After using the hash table it has to be destroyed. The used memory can
@@ -116,6 +117,7 @@ hdestroy_r (htab)
/* the sign for an existing table is an value != NULL in htable */
htab->table = NULL;
}
+libc_hidden_def (hdestroy_r)
/* This is the search function. It uses double hashing with open addressing.
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 321f2872f4..b677e4bf41 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993,1996-1999,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991-93,96-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
@@ -369,6 +369,7 @@ versioned_symbol (libc, __fnmatch, fnmatch, GLIBC_2_2_3);
strong_alias (__fnmatch, __fnmatch_old)
compat_symbol (libc, __fnmatch_old, fnmatch, GLIBC_2_0);
# endif
+libc_hidden_ver (__fnmatch, fnmatch)
# endif
#endif /* _LIBC or not __GNU_LIBRARY__. */
diff --git a/sysdeps/generic/getpriority.c b/sysdeps/generic/getpriority.c
index 1ea8e259e6..501c92a08a 100644
--- a/sysdeps/generic/getpriority.c
+++ b/sysdeps/generic/getpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,97,2000,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
@@ -31,6 +31,7 @@ getpriority (which, who)
__set_errno (ENOSYS);
return -1;
}
+libc_hidden_def (getpriority)
stub_warning (getpriority)
#include <stub-tag.h>
diff --git a/sysdeps/generic/setpriority.c b/sysdeps/generic/setpriority.c
index ca183899d1..b2e6f8a059 100644
--- a/sysdeps/generic/setpriority.c
+++ b/sysdeps/generic/setpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,97,2000,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
@@ -30,6 +30,7 @@ setpriority (which, who, prio)
__set_errno (ENOSYS);
return -1;
}
+libc_hidden_def (setpriority)
stub_warning (setpriority)
#include <stub-tag.h>
diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c
index 9fede4d2f0..8f7c3c6d97 100644
--- a/sysdeps/mach/hurd/getpriority.c
+++ b/sysdeps/mach/hurd/getpriority.c
@@ -82,3 +82,4 @@ getpriority (enum __priority_which which, id_t who)
return MACH_PRIORITY_TO_NICE (maxpri);
}
+libc_hidden_def (getpriority)
diff --git a/sysdeps/mach/hurd/setpriority.c b/sysdeps/mach/hurd/setpriority.c
index ab713bd036..bf739aa09a 100644
--- a/sysdeps/mach/hurd/setpriority.c
+++ b/sysdeps/mach/hurd/setpriority.c
@@ -95,3 +95,4 @@ setpriority (enum __priority_which which, id_t who, int prio)
return err ? __hurd_fail (err) : 0;
}
+libc_hidden_def (setpriority)
diff --git a/sysdeps/unix/sysv/irix4/getpriority.c b/sysdeps/unix/sysv/irix4/getpriority.c
index 9fc2be963e..baf945e54c 100644
--- a/sysdeps/unix/sysv/irix4/getpriority.c
+++ b/sysdeps/unix/sysv/irix4/getpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1994,96,97,2000,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
@@ -44,3 +44,4 @@ getpriority (which, who)
__set_errno (EINVAL);
return -1;
}
+libc_hidden_def (getpriority)
diff --git a/sysdeps/unix/sysv/linux/getpriority.c b/sysdeps/unix/sysv/linux/getpriority.c
index 809f0c1623..56796ed81c 100644
--- a/sysdeps/unix/sysv/linux/getpriority.c
+++ b/sysdeps/unix/sysv/linux/getpriority.c
@@ -1,5 +1,5 @@
/* getpriority for Linux.
- Copyright (C) 1996, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996,98,2000,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
@@ -44,3 +44,4 @@ getpriority (enum __priority_which which, id_t who)
res = PZERO - res;
return res;
}
+libc_hidden_def (getpriority)