Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorturbo <minxomat@gmail.com>2019-07-31 22:24:53 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-31 22:24:53 +0300
commit8b9033e4d24115190c06f775d18ef3a40cbca876 (patch)
tree682c3a6a4599754328b13678b5f9505bab9020eb /mcs/class/Mono.Posix
parent60c277cb4eec4bac9b4149cc345155f3b810e7da (diff)
Add O_NOATIME to OpenFlags (#8993)
O_NOATIME (Linux > 2.6.8): Do not update the file last access time (st_atime in the inode) when the file is read(2). Programs that merely index the existence of a file (backup programs e.g.) can reduce disk load using this flag.
Diffstat (limited to 'mcs/class/Mono.Posix')
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
index 957c3c4635e..6cc67dda4b8 100644
--- a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
+++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
@@ -151,7 +151,8 @@ namespace Mono.Unix.Native {
O_ASYNC = 0x00002000,
O_LARGEFILE = 0x00008000,
O_CLOEXEC = 0x00080000,
- O_PATH = 0x00200000
+ O_PATH = 0x00200000,
+ O_NOATIME = 0x00040000
}
[Map][Flags]