summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2017-12-17 13:36:21 +0100
committerKevin McCarthy <kevin@8t8.us>2017-12-17 14:31:29 -0800
commit489a1c394c29e4b12b705b62da413f322406326f (patch)
tree05543c43c18f6a5e848655ef223d87197e77f1e1 /main.c
parentf030bd36be8ff1134187c9d7611872ad00620d5d (diff)
manually touch atime when reading a mbox file
The only common use of atime left is local mail agents leaving a mark on mbox file after the mail has been read. And, since POSIX-2008, it is possible to use futimens() to alter atime even on filesystems mounted with noatime. There's no extra cost for doing this on when atime updates are enabled: the inode will be dirty already.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index ebe27985..dcfb02b8 100644
--- a/main.c
+++ b/main.c
@@ -392,6 +392,12 @@ static void show_version (void)
#else
"-HAVE_RESIZETERM "
#endif
+
+#ifdef HAVE_FUTIMENS
+ "+HAVE_FUTIMENS "
+#else
+ "-HAVE_FUTIMENS "
+#endif
);
puts (