mirror of git://sourceware.org/git/glibc.git
* elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
an atime update for the files we read.
This commit is contained in:
parent
7cf89e9599
commit
4503061fdc
|
|
@ -1,3 +1,8 @@
|
||||||
|
2007-08-11 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
|
||||||
|
an atime update for the files we read.
|
||||||
|
|
||||||
2007-08-10 Ulrich Drepper <drepper@redhat.com>
|
2007-08-10 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
|
* shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* Miscellaneous support functions for dynamic linker
|
/* Miscellaneous support functions for dynamic linker
|
||||||
Copyright (C) 1997-2002, 2003, 2004, 2006 Free Software Foundation, Inc.
|
Copyright (C) 1997-2004, 2006, 2007 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
@ -55,7 +55,11 @@ _dl_sysdep_read_whole_file (const char *file, size_t *sizep, int prot)
|
||||||
{
|
{
|
||||||
void *result = MAP_FAILED;
|
void *result = MAP_FAILED;
|
||||||
struct stat64 st;
|
struct stat64 st;
|
||||||
int fd = __open (file, O_RDONLY);
|
int oflags = O_RDONLY;
|
||||||
|
#ifdef O_NOATIME
|
||||||
|
oflags |= O_NOATIME;
|
||||||
|
#endif
|
||||||
|
int fd = __open (file, oflags);
|
||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
{
|
{
|
||||||
if (__fxstat64 (_STAT_VER, fd, &st) >= 0)
|
if (__fxstat64 (_STAT_VER, fd, &st) >= 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue