This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Roland McGrath wrote:
The Linux code modifies atime when it's mapped. So we'd need a symbol MMAP_ATIME_AT_ACCESS which is defined for Hurd but not for Linux. The read call is only performed when the symbol is not defined.If we assume that the mmap implementations we are using in fact also meet the stricter criterion of updating st_atime on each read fault, then it is safe to just use mmap and st_atime will meet the POSIX stdio rules. I haven't experimented on Linux, but this is certainly how mmap behaves on GNU/Hurd.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |