From 6f8a7dff35190bc47b003b9378f50f31b230872e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 15 May 2006 20:46:12 +0000 Subject: [PATCH] * include/rpc/pmap_prot.h: Mark all functions as hidden. * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden. * nscd/nscd_getgr_r.c: Likewise. * include/rpc/pmap_rmt.h: Mark all functions as hidden. * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden. * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise. * stdlib/longlong.h (__clz_tab): Mark as hidden. * iconv/gconv_int.h: Mark __gconv_lock as hidden. --- ChangeLog | 16 ++++++++++++++-- iconv/gconv_int.h | 4 ++-- include/rpc/pmap_prot.h | 6 ++++-- include/rpc/pmap_rmt.h | 6 ++++-- nptl/ChangeLog | 4 ++++ nptl/sysdeps/unix/sysv/linux/fork.h | 4 ++-- nscd/nscd_getai.c | 4 ++-- nscd/nscd_getgr_r.c | 5 ++--- nscd/nscd_gethst_r.c | 4 ++-- nscd/nscd_initgroups.c | 4 ++-- stdlib/longlong.h | 5 ++--- sunrpc/pmap_rmt.c | 4 ---- 12 files changed, 40 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index f13404a203..51b8b6436c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,19 @@ 2006-05-15 Ulrich Drepper + * include/rpc/pmap_prot.h: Mark all functions as hidden. + + * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden. + * nscd/nscd_getgr_r.c: Likewise. + + * include/rpc/pmap_rmt.h: Mark all functions as hidden. + + * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden. + * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise. + + * stdlib/longlong.h (__clz_tab): Mark as hidden. + + * iconv/gconv_int.h: Mark __gconv_lock as hidden. + * include/rpc/key_prot.h: Maek all _internal functions as hidden. * include/rpc/auth.h: Mark xdr_des_block_internal and @@ -10,8 +24,6 @@ * include/rpc/xdr.h: Make all _internal functions as hidden. - * sunrpc/pmap_rmt.c: Declare xdr_rmtcall_args_internal as hidden. - * misc/getusershell.c (okshells): Don't use static initializers, do it dynamically. diff --git a/iconv/gconv_int.h b/iconv/gconv_int.h index ace2bae1c6..8d9cdaefc2 100644 --- a/iconv/gconv_int.h +++ b/iconv/gconv_int.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997-2002, 2003, 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1997-2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -128,7 +128,7 @@ extern struct gconv_module *__gconv_modules_db attribute_hidden; extern const char *__gconv_path_envvar attribute_hidden; /* Lock for the conversion database content. */ -__libc_lock_define (extern, __gconv_lock); +__libc_lock_define (extern, __gconv_lock attribute_hidden) /* The gconv functions expects the name to be in upper case and complete, diff --git a/include/rpc/pmap_prot.h b/include/rpc/pmap_prot.h index e50d5e0c79..902faba019 100644 --- a/include/rpc/pmap_prot.h +++ b/include/rpc/pmap_prot.h @@ -1,5 +1,7 @@ #include -extern bool_t xdr_pmap_internal (XDR *__xdrs, struct pmap *__regs); -extern bool_t xdr_pmaplist_internal (XDR *__xdrs, struct pmaplist **__rp); +extern bool_t xdr_pmap_internal (XDR *__xdrs, struct pmap *__regs) + attribute_hidden; +extern bool_t xdr_pmaplist_internal (XDR *__xdrs, struct pmaplist **__rp) + attribute_hidden; diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h index f8e586c27e..63e41cab28 100644 --- a/include/rpc/pmap_rmt.h +++ b/include/rpc/pmap_rmt.h @@ -1,5 +1,7 @@ #include extern bool_t xdr_rmtcall_args_internal (XDR *__xdrs, - struct rmtcallargs *__crp); -extern bool_t xdr_rmtcallres_internal (XDR *__xdrs, struct rmtcallres *__crp); + struct rmtcallargs *__crp) + attribute_hidden; +extern bool_t xdr_rmtcallres_internal (XDR *__xdrs, struct rmtcallres *__crp) + attribute_hidden; diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 3ba665f7cd..2dd2838037 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2006-05-15 Ulrich Drepper + + * sysdeps/unix/sysv/linux/fork.h: Makr __fork_handlers as hidden. + 2006-05-11 Ulrich Drepper * pthread_key_create.c (__pthread_key_create): Do away with diff --git a/nptl/sysdeps/unix/sysv/linux/fork.h b/nptl/sysdeps/unix/sysv/linux/fork.h index d093ccc907..6458977b99 100644 --- a/nptl/sysdeps/unix/sysv/linux/fork.h +++ b/nptl/sysdeps/unix/sysv/linux/fork.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -41,7 +41,7 @@ struct fork_handler }; /* The single linked list of all currently registered for handlers. */ -extern struct fork_handler *__fork_handlers; +extern struct fork_handler *__fork_handlers attribute_hidden; /* Function to call to unregister fork handlers. */ diff --git a/nscd/nscd_getai.c b/nscd/nscd_getai.c index 4e3dfad1ea..b59c31ea26 100644 --- a/nscd/nscd_getai.c +++ b/nscd/nscd_getai.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2004. @@ -34,7 +34,7 @@ extern int __nss_not_use_nscd_hosts; /* We use the mapping from nscd_gethst. */ -libc_locked_map_ptr (extern, __hst_map_handle); +libc_locked_map_ptr (extern, __hst_map_handle) attribute_hidden; int diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c index dae1c0da54..922b906c19 100644 --- a/nscd/nscd_getgr_r.c +++ b/nscd/nscd_getgr_r.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 - Free Software Foundation, Inc. +/* Copyright (C) 1998-2000, 2002-2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk , 1998. @@ -67,7 +66,7 @@ __nscd_getgrgid_r (gid_t gid, struct group *resultbuf, char *buffer, } -libc_locked_map_ptr (,__gr_map_handle); +libc_locked_map_ptr (,__gr_map_handle) attribute_hidden; /* Note that we only free the structure if necessary. The memory mapping is not removed since it is not visible to the malloc handling. */ diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index 9fa10e2740..516977bcc4 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998-2002, 2003, 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1998-2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -87,7 +87,7 @@ __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type, } -libc_locked_map_ptr (, __hst_map_handle); +libc_locked_map_ptr (, __hst_map_handle) attribute_hidden; /* Note that we only free the structure if necessary. The memory mapping is not removed since it is not visible to the malloc handling. */ diff --git a/nscd/nscd_initgroups.c b/nscd/nscd_initgroups.c index cf5af6edc1..3d82275d7e 100644 --- a/nscd/nscd_initgroups.c +++ b/nscd/nscd_initgroups.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2004. @@ -30,7 +30,7 @@ /* We use the same mapping as in nscd_getgr. */ -libc_locked_map_ptr (extern, __gr_map_handle); +libc_locked_map_ptr (extern, __gr_map_handle) attribute_hidden; int diff --git a/stdlib/longlong.h b/stdlib/longlong.h index 4e1931d823..ca6285a19b 100644 --- a/stdlib/longlong.h +++ b/stdlib/longlong.h @@ -1,7 +1,6 @@ /* longlong.h -- definitions for mixed size 32/64 bit arithmetic. Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2002, 2003, 2004, 2005 - Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -46,7 +45,7 @@ #define UDWtype UDItype #endif -extern const UQItype __clz_tab[256]; +extern const UQItype __clz_tab[256] attribute_hidden; /* Define auxiliary asm macros. diff --git a/sunrpc/pmap_rmt.c b/sunrpc/pmap_rmt.c index 7de7f4147c..e068848919 100644 --- a/sunrpc/pmap_rmt.c +++ b/sunrpc/pmap_rmt.c @@ -62,10 +62,6 @@ extern u_long _create_xid (void); static const struct timeval timeout = {3, 0}; -bool_t xdr_rmtcall_args_internal (XDR *xdrs, struct rmtcallargs *cap) - attribute_hidden; - - /* * pmapper remote-call-service interface. * This routine is used to call the pmapper remote call service -- 2.11.4.GIT