+2002-03-15 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
+ internal function. Adjust for internal_function calling convention.
+ * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
+ as internal_function.
+
+ * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
+ hidden.
+
+ * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
+ declaration and definition.
+ * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
+ declaration.
+ * nss/getXXent_r.c: Likewise.
+ * nss/nsswitch.h (db_lookup_function): Add internal_function to
+ definition.
+
+ * include/time.h: Declare __localtime_r as hidden.
+
+ * include/grp.h: Declare __getgrent_r as hidden.
+ * include/netdb.h: Declare __gethostent_r, __getnetent_r,
+ __getservent_r, and __getprotoent_r as hidden.
+ * include/pwd.h: Declare __getpwent_r as hidden.
+ * include/shadow.h: Declare __getspent_r as hidden.
+ * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
+
+ * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
+ and __gconv_transliterate as hidden.
+ Add internal_function to __gconv_get_path declaration.
+ * iconv/gconv_int.h: Add internal_function to __gconv_get_path
+ definition. Add attribute_hidden to __gconv_read_conf definition.
+
2002-03-14 Ulrich Drepper <drepper@redhat.com>
* elf/rtld.c: Declare _environ as hidden.
/* Handle configuration data.
- Copyright (C) 1997,98,99,2000,2001 Free Software Foundation, Inc.
+ Copyright (C) 1997,98,99,2000,2001,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
/* Determine the directories we are looking for data in. */
void
+internal_function
__gconv_get_path (void)
{
struct path_elem *result;
/* Read all configuration files found in the user-specified and the default
path. */
void
+attribute_hidden
__gconv_read_conf (void)
{
void *modules = NULL;
internal_function;
/* Read all the configuration data and cache it. */
-extern void __gconv_read_conf (void);
+extern void __gconv_read_conf (void) attribute_hidden;
/* Try to read module cache file. */
extern int __gconv_load_cache (void) internal_function;
/* Determine the directories we are looking in. */
-extern void __gconv_get_path (void);
+extern void __gconv_get_path (void) internal_function;
/* Comparison function to search alias. */
-extern int __gconv_alias_compare (const void *p1, const void *p2);
+extern int __gconv_alias_compare (const void *p1, const void *p2)
+ attribute_hidden;
/* Clear reference to transformation step implementations which might
cause the code to be unloaded. */
__const unsigned char **inbufp,
__const unsigned char *inbufend,
unsigned char **outbufstart,
- size_t *irreversible);
+ size_t *irreversible) attribute_hidden;
/* Builtin transformations. */
/* Now define the internal interfaces. */
extern int __getgrent_r (struct group *__resultbuf, char *buffer,
- size_t __buflen, struct group **__result);
+ size_t __buflen, struct group **__result)
+ attribute_hidden;
extern int __old_getgrent_r (struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result);
extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
extern int __gethostent_r (struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
- int *__restrict __h_errnop);
+ int *__restrict __h_errnop) attribute_hidden;
extern int __old_gethostent_r (struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
extern int __getnetent_r (struct netent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct netent **__restrict __result,
- int *__restrict __h_errnop);
+ int *__restrict __h_errnop) attribute_hidden;
extern int __old_getnetent_r (struct netent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct netent **__restrict __result,
extern int __getservent_r (struct servent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
- struct servent **__restrict __result);
+ struct servent **__restrict __result)
+ attribute_hidden;
extern int __old_getservent_r (struct servent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct servent **__restrict __result);
extern int __getprotoent_r (struct protoent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
- struct protoent **__restrict __result);
+ struct protoent **__restrict __result)
+ attribute_hidden;
extern int __old_getprotoent_r (struct protoent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct protoent **__restrict __result);
/* Now define the internal interfaces. */
extern int __getpwent_r (struct passwd *__resultbuf, char *__buffer,
- size_t __buflen, struct passwd **__result);
+ size_t __buflen, struct passwd **__result)
+ attribute_hidden;
extern int __old_getpwent_r (struct passwd *__resultbuf, char *__buffer,
size_t __buflen, struct passwd **__result);
extern int __getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
struct rpcent **__result);
extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer,
- size_t __buflen, struct rpcent **__result);
+ size_t __buflen, struct rpcent **__result)
+ attribute_hidden;
extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer,
size_t __buflen, struct rpcent **__result);
/* Now define the internal interfaces. */
extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
- size_t __buflen, struct spwd **__result);
+ size_t __buflen, struct spwd **__result)
+ attribute_hidden;
extern int __old_getspent_r (struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result);
extern int __getspnam_r (__const char *__name, struct spwd *__result_buf,
struct tm *),
time_t *__offset);
extern struct tm *__localtime_r (__const time_t *__timer,
- struct tm *__tp);
+ struct tm *__tp) attribute_hidden;
extern struct tm *__gmtime_r (__const time_t *__restrict __timer,
struct tm *__restrict __tp);
service_user *DATABASE_NAME_SYMBOL attribute_hidden;
extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name,
- void **fctp);
+ void **fctp) internal_function;
int
+internal_function
DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp)
{
if (DATABASE_NAME_SYMBOL == NULL
size_t, int * H_ERRNO_PARM);
/* The lookup function for the first entry of this service. */
-extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp);
+extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp)
+ internal_function;
/* Interval in which we transfer retry to contact the NSCD. */
#define NSS_NSCD_RETRY 100
__libc_lock_define_initialized (static, lock)
/* The lookup function for the first entry of this service. */
-extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp);
+extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp)
+ internal_function;
\f
void
SETFUNC_NAME (STAYOPEN)
-/* Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2001,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
void *__nss_lookup_function (service_user *ni, const char *fct_name);
-typedef int (*db_lookup_function) (service_user **, const char *, void **);
+typedef int (*db_lookup_function) (service_user **, const char *, void **)
+ internal_function;
typedef enum nss_status (*setent_function) (int);
typedef enum nss_status (*endent_function) (void);
typedef enum nss_status (*getent_function) (void *, char *, size_t,
#include <unwind-dw2.c>
#undef __frame_state_for
+struct frame_state * fallback_frame_state_for (void *, struct frame_state *)
+#ifdef _LIBC
+ attribute_hidden
+#endif
+ ;
+
typedef struct frame_state * (*framesf)(void *pc, struct frame_state *);
struct frame_state *__frame_state_for (void *pc,
struct frame_state *frame_state);
/* i386-specific implemetation of profiling support.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
pushl %ecx
pushl %edx
- movl 12(%esp), %eax
- movl 4(%ebp), %ecx
- pushl %eax
- pushl %ecx
+ movl 12(%esp), %edx
+ movl 4(%ebp), %eax
-#ifdef PIC
- call 1f
-1: popl %ecx
- addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx
- movl C_SYMBOL_NAME(__mcount_internal@GOT)(%ecx), %eax
- call *%eax
-#else
+ /* No need to access the PLT or GOT, __mcount_internal is an
+ internal function and we can make a relative call. */
call C_SYMBOL_NAME(__mcount_internal)
-#endif
- popl %ecx
- popl %eax /* Pop the parameters. */
/* Pop the saved registers. Please note that `mcount' has no
return value. */
/* i386-specific implementation of profiling support.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
/* We must not pollute the global namespace. */
#define mcount_internal __mcount_internal
-void mcount_internal (u_long frompc, u_long selfpc);
+extern void mcount_internal (u_long frompc, u_long selfpc) internal_function;
#define _MCOUNT_DECL(frompc, selfpc) \
-void mcount_internal (u_long frompc, u_long selfpc)
+void internal_function mcount_internal (u_long frompc, u_long selfpc)
/* Define MCOUNT as empty since we have the implementation in another