summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-11-27 11:28:30 +0000
committerJeremy Allison <jra@samba.org>2019-12-06 00:17:35 +0000
commit96418cb15606a0969a50096e1c0e5de9c9e48d9a (patch)
tree006c4b1c0761a706150e9f3047e49529f16f94a0
parent5fe42bdcde1d686c885445a718f181a49953c918 (diff)
downloadsamba-96418cb15606a0969a50096e1c0e5de9c9e48d9a.tar.gz
lib: provide UTIME_NOW|OMIT defines under our own namespace
We may want to add additional defines in the future in order to deal with NTTIME(-1) and NTTIME(-2) coming in over the wire. They have special semantics attached to them, -1 requests "no automatic write time updates" on a filehandle and -2 reenables them. We could use something like #define SAMBA_UTIME_FREEZE (SAMBA_UTIME_OMIT - 1) #define SAMBA_UTIME_THAW (SAMBA_UTIME_FREEZE - 1) in the future. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--lib/util/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util/time.h b/lib/util/time.h
index 7a8f8af35d9..d03dc4908f3 100644
--- a/lib/util/time.h
+++ b/lib/util/time.h
@@ -41,6 +41,8 @@
#define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t))
#endif
+#define SAMBA_UTIME_NOW UTIME_NOW
+#define SAMBA_UTIME_OMIT UTIME_OMIT
/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30, 4 byte aligned */
typedef uint64_t NTTIME;