mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* malloc/memusage.c (me): Allow creating the output file.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2001-08-13 Ulrich Drepper <drepper@redhat.com>
|
2001-08-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/memusage.c (me): Allow creating the output file.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/Makefile: Remove -fkeep-inline-functions
|
* sysdeps/unix/sysv/linux/Makefile: Remove -fkeep-inline-functions
|
||||||
flag for init-first.
|
flag for init-first.
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
02111-1307 USA. */
|
02111-1307 USA. */
|
||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -206,7 +207,7 @@ me (void)
|
|||||||
|
|
||||||
outname = getenv ("MEMUSAGE_OUTPUT");
|
outname = getenv ("MEMUSAGE_OUTPUT");
|
||||||
if (outname != NULL && outname[0] != '\0'
|
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);
|
fd = creat (outname, 0666);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user