Project

General

Profile

Bug #332

mmap fails to update atime

Added by corecode about 10 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


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 almost 8 years ago

originally committed in 8e7ceff7f24f4bd5eae767c8c091e696d490dd58
better fix in a6e41612e54fa7b0a616c8f8d14446bab206d030

Also available in: Atom PDF