aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-19 18:55:39 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-19 18:55:39 +0000
commit4c48dc9386ff50f960ae9d7d71493bfd85ccb979 (patch)
treebabe088b6a157319a72cb0145be4a7b09e32202f /malloc
parentb99a3ee2223e29059b00616365625cc9c55a362e (diff)
downloadglibc-4c48dc9386ff50f960ae9d7d71493bfd85ccb979.zip
glibc-4c48dc9386ff50f960ae9d7d71493bfd85ccb979.tar.gz
glibc-4c48dc9386ff50f960ae9d7d71493bfd85ccb979.tar.bz2
Update.
2001-02-18 Mark Kettenis <kettenis@gnu.org> * malloc/mtrace.c [USE_IN_LIBIO]: Define fopen as _IO_fopen64. (mtrace): Revert 2001-02-13 patch: use fopen instead of fopen64. 2001-02-17 H.J. Lu <hjl@gnu.org> * sysdeps/unix/sysv/linux/ia64/clone2.S: Use clone2 and don't use scratch registers across the system call.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/mtrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index d41c162..9ebbaeb 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -42,6 +42,7 @@
#ifdef USE_IN_LIBIO
# include <libio/iolibio.h>
+# define fopen(f, n) _IO_fopen64 (f, n)
# define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l)
#endif
@@ -268,7 +269,7 @@ mtrace ()
#endif
if (mallfile != NULL || mallwatch != NULL)
{
- mallstream = fopen64 (mallfile != NULL ? mallfile : "/dev/null", "w");
+ mallstream = fopen (mallfile != NULL ? mallfile : "/dev/null", "w");
if (mallstream != NULL)
{
/* Make sure we close the file descriptor on exec. */