From: Ulrich Drepper Date: Mon, 13 Aug 2001 21:54:43 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_2_4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f47f6457b69a0cbd2653271158e8742e7e6616a;p=thirdparty%2Fglibc.git Update. * malloc/memusage.c (me): Allow creating the output file. --- diff --git a/ChangeLog b/ChangeLog index cb2b3c0a0fd..e795141f7df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-08-13 Ulrich Drepper + * malloc/memusage.c (me): Allow creating the output file. + * sysdeps/unix/sysv/linux/Makefile: Remove -fkeep-inline-functions flag for init-first. diff --git a/malloc/memusage.c b/malloc/memusage.c index b65440f8079..d619fb96fb1 100644 --- a/malloc/memusage.c +++ b/malloc/memusage.c @@ -19,6 +19,7 @@ 02111-1307 USA. */ #include +#include #include #include #include @@ -206,7 +207,7 @@ me (void) outname = getenv ("MEMUSAGE_OUTPUT"); if (outname != NULL && outname[0] != '\0' - && access (outname, R_OK | W_OK) == 0) + && (access (outname, R_OK | W_OK) == 0 || errno == ENOENT)) { fd = creat (outname, 0666);