diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-10 04:18:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-10 04:18:14 +0000 |
commit | 19c589d904cab62cafcc7d7392462721d690c8cd (patch) | |
tree | 58f615aac5512a01677c1ee95e66b791a17e8e0a /malloc/memusage.c | |
parent | 61c6385ddbfec9c3b4ac49d992c68ea4eba533f7 (diff) | |
download | glibc-19c589d904cab62cafcc7d7392462721d690c8cd.tar.gz glibc-19c589d904cab62cafcc7d7392462721d690c8cd.tar.xz glibc-19c589d904cab62cafcc7d7392462721d690c8cd.zip |
[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 <guymaor@yahoo.com>.
Diffstat (limited to 'malloc/memusage.c')
-rw-r--r-- | malloc/memusage.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <drepper@cygnus.com>, 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 |