mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
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>
This commit is contained in:
parent
5fe42bdcde
commit
96418cb156
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user