From: Ralph Boehme Date: Wed, 27 Nov 2019 11:28:30 +0000 (+0000) Subject: lib: provide UTIME_NOW|OMIT defines under our own namespace X-Git-Tag: ldb-2.1.0~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96418cb15606a0969a50096e1c0e5de9c9e48d9a;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- 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;