]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Sun, 31 Dec 2000 19:13:04 +0000 (19:13 +0000)
committerAndreas Jaeger <aj@suse.de>
Sun, 31 Dec 2000 19:13:04 +0000 (19:13 +0000)
* include/libc-internal.h: Add prototype for __libc_freeres.

* malloc/mtrace.c: Likewise.
* malloc/set-freeres.c: Likewise.

16 files changed:
ChangeLog
debug/noophooks.c
debug/pcprofile.c
elf/soinit.c
gmon/gmon.c
include/libc-internal.h
malloc/mtrace.c
malloc/set-freeres.c
sysdeps/generic/enbl-secure.c
sysdeps/generic/get_clockfreq.c
sysdeps/generic/prof-freq.c
sysdeps/mach/hurd/profil.c
sysdeps/unix/i386/i586/clock_getres.c
sysdeps/unix/i386/i586/clock_gettime.c
sysdeps/unix/sysv/linux/i386/get_clockfreq.c
sysdeps/unix/sysv/linux/init-first.c

index 9a17077db3459cafdcfca17efc595aac85ded83d..8be24d6d88e83d7405b4fc05a4cf28b2d2e1ca60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,13 @@
 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>
        for prototypes, remove redundant prototypes.
        * gmon/gmon.c: Likewise.
        * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
        * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
+       * malloc/mtrace.c: Likewise.
 
        * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
        prototypes.
@@ -15,6 +18,7 @@
        * debug/pcprofile.c: Likewise.
        * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
        * sysdeps/generic/get_clockfreq.c: Likewise.
+       * malloc/set-freeres.c: Likewise.
 
        * locale/localeinfo.h: Add internal prototypes.
 
index 5c1ae01960c8ccbd514238c3f0de29e545737304..7f2517801dd1c4a49a7f1138fa84fd6d1de93a76 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -18,6 +18,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <libc-internal.h>
+
 void
 __cyg_profile_func_enter (void *this_fn, void *call_site)
 {
index 11447deb7dc068688d55c510ebd415a2fcc325d4..eb95856c2db306d581488385f2f0ad1cc1c67920 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -23,6 +23,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <libc-internal.h>
 
 /* Nonzero if we are actually doing something.  */
 static int active;
index 4e2a149d86273f6b322e69533e74699afa2ad547..42e6cf1691715acbb8118375fccb3fedabb0cffc 100644 (file)
@@ -3,9 +3,11 @@
    the `.ctors' and `.dtors' sections so the lists are terminated, and
    calling those lists of functions.  */
 
-# ifdef HAVE_DWARF2_UNWIND_INFO_STATIC
+#include <libc-internal.h>
+
+#ifdef HAVE_DWARF2_UNWIND_INFO_STATIC
 # include <gccframe.h>
-# endif
+#endif
 
 static void (*const __CTOR_LIST__[1]) (void)
      __attribute__ ((section (".ctors")))
index 45fe6e8ac4cace4af87c9caf8e06babf177aa90a..a0c571416432ecbca54ac3cac000d7350f0df70d 100644 (file)
@@ -41,8 +41,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-
-extern int __profile_frequency __P ((void));
+#include <libc-internal.h>
 
 struct __bb *__bb_head;        /*  Head of basic-block list or NULL. */
 
index 0734191861ceb441f4771885aa5def9d60b5caa8..b7f630a8076c0cb68c34f7a16debf71d33458a0d 100644 (file)
@@ -21,5 +21,7 @@ extern void __cyg_profile_func_exit (void *this_fn, void *call_site);
 /* Get frequency of the system processor.  */
 extern unsigned long long int __get_clockfreq (void);
 
+/* Free all allocated resources.  */
+extern void __libc_freeres (void);
 
 #endif /* _LIBC_INTERNAL  */
index 505389f3f86fd6c3747101318b0dc33fe4802679..0d170d62a050d0e0049deb1da80bf46b110531dc 100644 (file)
 
 #include <stdio-common/_itoa.h>
 
+#ifdef _LIBC
+# include <libc-internal.h>
+#endif
+
 #ifdef USE_IN_LIBIO
 # include <libio/iolibio.h>
 # define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l)
@@ -223,7 +227,6 @@ tr_reallochook (ptr, size, caller)
 
 
 #ifdef _LIBC
-extern void __libc_freeres (void);
 
 /* This function gets called to make sure all memory the library
    allocates get freed and so does not irritate the user when studying
index 814bc4a55ed1a5d0527731dc407c23627d31f418..169026cc86ab0c5e040f90ffed40e86fba047ef8 100644 (file)
@@ -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.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,7 @@
 #include <atomicity.h>
 #include <stdlib.h>
 #include <set-hooks.h>
+#include <libc-internal.h>
 
 DEFINE_HOOK (__libc_subfreeres, (void));
 
index 7dcd4391fab6a0f1e80f86968569df4cd34aa667..fac79ea30e0dfd7cf8c642b867e1a61e6c6de2e7 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
    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.  */
 
 #include <unistd.h>
-
+#include <libc-internal.h>
 
 /* Safest assumption, if somehow the initializer isn't run.  */
 int __libc_enable_secure = 1;
index 210ba27d1e43589eca3c614bad3bc5d76f574ba6..94f233c557807aa785a4d2deeab77dd011e382f8 100644 (file)
@@ -17,6 +17,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <libc-internal.h>
+
 unsigned long long int
 __get_clockfreq (void)
 {
index 43b421df54d291ecf564c264b2ead4db2229e7c7..0610534ad1ccde4babc2871c6bbd4f72397d9ded 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <sys/types.h>
 #include <sys/time.h>
+#include <libc-internal.h>
 
 int
 __profile_frequency (void)
index 365b11bed304feb283d8e0cd613fbbfd807905cf..f070d69e7a745967fde033c92918f616c6a381fd 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,6 +25,8 @@
 #include <mach/pc_sample.h>
 #include <cthreads.h>
 #include <assert.h>
+#include <libc-internal.h>
+
 
 #define MAX_PC_SAMPLES 512     /* XXX ought to be exported in kernel hdr */
 
index 49986f85ab6cca8bde0ff85a233443e9bb167935..dd0af535ef5c37ce98714a6b57804e6c1ddbfd43 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <sys/param.h>
 #include <sys/time.h>
+#include <libc-internal.h>
 
 /* This implementation uses the TSC register in modern (i586 and up) IA-32
    processors (most modern clones also provide it).  Since we need the
@@ -27,9 +28,6 @@
    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
    because some jokers are already playing with processors with more
    than 4GHz.  */
index 5d0e9f4c60cbd7769eb36e209703893d9909e6c1..636744e4d6257b4a3925831a5af7ec14586f5e20 100644 (file)
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <sys/time.h>
+#include <libc-internal.h>
 
 /* This implementation uses the TSC register in modern (i586 and up) IA-32
    processors (most modern clones also provide it).  Since we need the
@@ -26,9 +27,6 @@
    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
    because some jokers are already playing with processors with more
    than 4GHz.  */
index 26784c6da0f487df35dca19ac30e07f455fe5604..ec6c174421ca0dc015c5018e8483b6b67d521ea1 100644 (file)
@@ -21,6 +21,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <unistd.h>
+#include <libc-internal.h>
 
 
 unsigned long long int
index 0e5b4a287dcd485c7aa390a8e7a960d16b85fb47..af4e9c6d54c15b72d51803d64ec8933794b8d9e3 100644 (file)
 #include <sys/param.h>
 #include <sys/types.h>
 #include "kernel-features.h"
+#include <libc-internal.h>
 
 #ifndef SHARED
 # include "dl-osinfo.h"
 #endif
 
-extern void __libc_init_secure (void);
 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.  */
 static void init (int, char **, char **) __attribute__ ((unused));