Update.
* include/libc-internal.h: Add prototype for __libc_freeres. * malloc/mtrace.c: Likewise. * malloc/set-freeres.c: Likewise.
This commit is contained in:
parent
72f70279f4
commit
66539a737d
|
@ -1,10 +1,13 @@
|
||||||
2000-12-31 Andreas Jaeger <aj@suse.de>
|
2000-12-31 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* include/libc-internal.h: Add prototype for __libc_freeres.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
|
* sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
|
||||||
for prototypes, remove redundant prototypes.
|
for prototypes, remove redundant prototypes.
|
||||||
* gmon/gmon.c: Likewise.
|
* gmon/gmon.c: Likewise.
|
||||||
* sysdeps/unix/i386/i586/clock_getres.c: Likewise.
|
* sysdeps/unix/i386/i586/clock_getres.c: Likewise.
|
||||||
* sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
|
* sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
|
||||||
|
* malloc/mtrace.c: Likewise.
|
||||||
|
|
||||||
* sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
|
* sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
|
||||||
prototypes.
|
prototypes.
|
||||||
|
@ -15,6 +18,7 @@
|
||||||
* debug/pcprofile.c: Likewise.
|
* debug/pcprofile.c: Likewise.
|
||||||
* sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
|
* sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
|
||||||
* sysdeps/generic/get_clockfreq.c: Likewise.
|
* sysdeps/generic/get_clockfreq.c: Likewise.
|
||||||
|
* malloc/set-freeres.c: Likewise.
|
||||||
|
|
||||||
* locale/localeinfo.h: Add internal prototypes.
|
* locale/localeinfo.h: Add internal prototypes.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Noop hooks for the instrumenting functions.
|
/* Noop hooks for the instrumenting functions.
|
||||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@
|
||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
__cyg_profile_func_enter (void *this_fn, void *call_site)
|
__cyg_profile_func_enter (void *this_fn, void *call_site)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Profile PC and write result to FIFO.
|
/* Profile PC and write result to FIFO.
|
||||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Nonzero if we are actually doing something. */
|
/* Nonzero if we are actually doing something. */
|
||||||
static int active;
|
static int active;
|
||||||
|
|
|
@ -3,9 +3,11 @@
|
||||||
the `.ctors' and `.dtors' sections so the lists are terminated, and
|
the `.ctors' and `.dtors' sections so the lists are terminated, and
|
||||||
calling those lists of functions. */
|
calling those lists of functions. */
|
||||||
|
|
||||||
# ifdef HAVE_DWARF2_UNWIND_INFO_STATIC
|
#include <libc-internal.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_DWARF2_UNWIND_INFO_STATIC
|
||||||
# include <gccframe.h>
|
# include <gccframe.h>
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
static void (*const __CTOR_LIST__[1]) (void)
|
static void (*const __CTOR_LIST__[1]) (void)
|
||||||
__attribute__ ((section (".ctors")))
|
__attribute__ ((section (".ctors")))
|
||||||
|
|
|
@ -41,8 +41,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
extern int __profile_frequency __P ((void));
|
|
||||||
|
|
||||||
struct __bb *__bb_head; /* Head of basic-block list or NULL. */
|
struct __bb *__bb_head; /* Head of basic-block list or NULL. */
|
||||||
|
|
||||||
|
|
|
@ -21,5 +21,7 @@ extern void __cyg_profile_func_exit (void *this_fn, void *call_site);
|
||||||
/* Get frequency of the system processor. */
|
/* Get frequency of the system processor. */
|
||||||
extern unsigned long long int __get_clockfreq (void);
|
extern unsigned long long int __get_clockfreq (void);
|
||||||
|
|
||||||
|
/* Free all allocated resources. */
|
||||||
|
extern void __libc_freeres (void);
|
||||||
|
|
||||||
#endif /* _LIBC_INTERNAL */
|
#endif /* _LIBC_INTERNAL */
|
||||||
|
|
|
@ -36,6 +36,10 @@
|
||||||
|
|
||||||
#include <stdio-common/_itoa.h>
|
#include <stdio-common/_itoa.h>
|
||||||
|
|
||||||
|
#ifdef _LIBC
|
||||||
|
# include <libc-internal.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_IN_LIBIO
|
#ifdef USE_IN_LIBIO
|
||||||
# include <libio/iolibio.h>
|
# include <libio/iolibio.h>
|
||||||
# define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l)
|
# define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l)
|
||||||
|
@ -223,7 +227,6 @@ tr_reallochook (ptr, size, caller)
|
||||||
|
|
||||||
|
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
extern void __libc_freeres (void);
|
|
||||||
|
|
||||||
/* This function gets called to make sure all memory the library
|
/* This function gets called to make sure all memory the library
|
||||||
allocates get freed and so does not irritate the user when studying
|
allocates get freed and so does not irritate the user when studying
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
#include <atomicity.h>
|
#include <atomicity.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <set-hooks.h>
|
#include <set-hooks.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
DEFINE_HOOK (__libc_subfreeres, (void));
|
DEFINE_HOOK (__libc_subfreeres, (void));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Define and initialize the `__libc_enable_secure' flag. Generic version.
|
/* Define and initialize the `__libc_enable_secure' flag. Generic version.
|
||||||
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
dl-sysdep.c defines and initializes __libc_enable_secure. */
|
dl-sysdep.c defines and initializes __libc_enable_secure. */
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Safest assumption, if somehow the initializer isn't run. */
|
/* Safest assumption, if somehow the initializer isn't run. */
|
||||||
int __libc_enable_secure = 1;
|
int __libc_enable_secure = 1;
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
unsigned long long int
|
unsigned long long int
|
||||||
__get_clockfreq (void)
|
__get_clockfreq (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__profile_frequency (void)
|
__profile_frequency (void)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Low-level statistical profiling support function. Mach/Hurd version.
|
/* Low-level statistical profiling support function. Mach/Hurd version.
|
||||||
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -25,6 +25,8 @@
|
||||||
#include <mach/pc_sample.h>
|
#include <mach/pc_sample.h>
|
||||||
#include <cthreads.h>
|
#include <cthreads.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
|
|
||||||
#define MAX_PC_SAMPLES 512 /* XXX ought to be exported in kernel hdr */
|
#define MAX_PC_SAMPLES 512 /* XXX ought to be exported in kernel hdr */
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* This implementation uses the TSC register in modern (i586 and up) IA-32
|
/* This implementation uses the TSC register in modern (i586 and up) IA-32
|
||||||
processors (most modern clones also provide it). Since we need the
|
processors (most modern clones also provide it). Since we need the
|
||||||
|
@ -27,9 +28,6 @@
|
||||||
faster processors will not work without changes. */
|
faster processors will not work without changes. */
|
||||||
|
|
||||||
|
|
||||||
/* Function to determine processor frequency. */
|
|
||||||
extern unsigned long long int __get_clockfreq (void);
|
|
||||||
|
|
||||||
/* Clock frequency of the processor. We make it a 64-bit variable
|
/* Clock frequency of the processor. We make it a 64-bit variable
|
||||||
because some jokers are already playing with processors with more
|
because some jokers are already playing with processors with more
|
||||||
than 4GHz. */
|
than 4GHz. */
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* This implementation uses the TSC register in modern (i586 and up) IA-32
|
/* This implementation uses the TSC register in modern (i586 and up) IA-32
|
||||||
processors (most modern clones also provide it). Since we need the
|
processors (most modern clones also provide it). Since we need the
|
||||||
|
@ -26,9 +27,6 @@
|
||||||
faster processors will not work without changes. */
|
faster processors will not work without changes. */
|
||||||
|
|
||||||
|
|
||||||
/* Function to determine processor frequency. */
|
|
||||||
extern unsigned long long int __get_clockfreq (void);
|
|
||||||
|
|
||||||
/* Clock frequency of the processor. We make it a 64-bit variable
|
/* Clock frequency of the processor. We make it a 64-bit variable
|
||||||
because some jokers are already playing with processors with more
|
because some jokers are already playing with processors with more
|
||||||
than 4GHz. */
|
than 4GHz. */
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
|
|
||||||
unsigned long long int
|
unsigned long long int
|
||||||
|
|
|
@ -26,14 +26,13 @@
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "kernel-features.h"
|
#include "kernel-features.h"
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
#ifndef SHARED
|
#ifndef SHARED
|
||||||
# include "dl-osinfo.h"
|
# include "dl-osinfo.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void __libc_init_secure (void);
|
|
||||||
extern void __libc_init (int, char **, char **);
|
extern void __libc_init (int, char **, char **);
|
||||||
extern void __libc_global_ctors (void);
|
|
||||||
|
|
||||||
/* The function is called from assembly stubs the compiler can't see. */
|
/* The function is called from assembly stubs the compiler can't see. */
|
||||||
static void init (int, char **, char **) __attribute__ ((unused));
|
static void init (int, char **, char **) __attribute__ ((unused));
|
||||||
|
|
Loading…
Reference in New Issue