summaryrefslogtreecommitdiffstats
path: root/src/ctx.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-17 16:02:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-17 16:02:57 -0500
commitda02defb91c3a1bda0ea7e653d81f997f1c8884a (patch)
tree2b58212b064989b01c90d7d78fa00cedc9e4bec2 /src/ctx.h
parent3604eeddb8a317c0745e92680d0405c645fbe247 (diff)
downloadbfs-da02defb91c3a1bda0ea7e653d81f997f1c8884a.tar.xz
expr: Don't use reftime for -ls
reftime is part of a different union than the print actions are supposed to use.
Diffstat (limited to 'src/ctx.h')
-rw-r--r--src/ctx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ctx.h b/src/ctx.h
index d32db59..6755d02 100644
--- a/src/ctx.h
+++ b/src/ctx.h
@@ -26,6 +26,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <sys/resource.h>
+#include <time.h>
/**
* Various debugging flags.
@@ -127,6 +128,9 @@ struct bfs_ctx {
rlim_t nofile_soft;
/** The initial RLIMIT_NOFILE hard limit. */
rlim_t nofile_hard;
+
+ /** The current time. */
+ struct timespec now;
};
/**