From 19c589d904cab62cafcc7d7392462721d690c8cd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 10 Aug 2004 04:18:14 +0000 Subject: [BZ #285] Update. * malloc/memusage.c (me): Use creat64, not creat. * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285] Patch by Guy Maor . --- malloc/memusage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'malloc/memusage.c') diff --git a/malloc/memusage.c b/malloc/memusage.c index d5b73f5921..b552ec37b0 100644 --- a/malloc/memusage.c +++ b/malloc/memusage.c @@ -1,5 +1,5 @@ /* Profile heap and stack memory usage of running program. - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1998-2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -233,7 +233,7 @@ me (void) if (outname != NULL && outname[0] != '\0' && (access (outname, R_OK | W_OK) == 0 || errno == ENOENT)) { - fd = creat (outname, 0666); + fd = creat64 (outname, 0666); if (fd == -1) /* Don't do anything in future calls if we cannot write to -- cgit v1.2.3