Bug #332

mmap fails to update atime

Added by corecode over 7 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hey,

it seems mmap() fails to update the atime of files correctly, as mandated by SUSv3:

> The st_atime field of the mapped file may be marked for update at any time between the mmap() call and the corresponding munmap() call. The initial read or write reference to a mapped region shall cause the file's st_atime field to be marked for update if it has not already been marked for update.

more details follow.

cheers
simon

History

#1 Updated by corecode about 5 years ago

originally committed in 8e7ceff7f24f4bd5eae767c8c091e696d490dd58
better fix in a6e41612e54fa7b0a616c8f8d14446bab206d030

Also available in: Atom PDF