diff options
author | Gerald Carter <jerry@samba.org> | 2002-06-17 18:36:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-06-17 18:36:36 +0000 |
commit | 1e6e5b299c235b513095a76a4cd9fffc41e8fc9c (patch) | |
tree | 9f741529073ad411cc7328334e26d3e35b1d33f1 /source/include/smb.h | |
parent | a11c5d7ad07d259d764aede4745d13f8163a8212 (diff) | |
download | samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.tar.gz samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.tar.xz samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.zip |
beginning to sync up for 2.2.5 release....
Diffstat (limited to 'source/include/smb.h')
-rw-r--r-- | source/include/smb.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index 2b4d4fa690e..ed5230a8d69 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -199,6 +199,15 @@ typedef struct nttime_info } NTTIME; +#ifndef TIME_T_MIN +#define TIME_T_MIN ((time_t)0 < (time_t) -1 ? (time_t) 0 \ + : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1)) +#endif +#ifndef TIME_T_MAX +#define TIME_T_MAX (~ (time_t) 0 - TIME_T_MIN) +#endif + + /* the following rather strange looking definitions of NTSTATUS and WERROR and there in order to catch common coding errors where different error types are mixed up. This is especially important as we slowly convert Samba @@ -649,13 +658,14 @@ typedef struct sam_passwd * Flags for local user manipulation. */ -#define LOCAL_ADD_USER 0x1 -#define LOCAL_DELETE_USER 0x2 -#define LOCAL_DISABLE_USER 0x4 -#define LOCAL_ENABLE_USER 0x8 -#define LOCAL_TRUST_ACCOUNT 0x10 -#define LOCAL_SET_NO_PASSWORD 0x20 +#define LOCAL_ADD_USER 0x01 +#define LOCAL_DELETE_USER 0x02 +#define LOCAL_DISABLE_USER 0x04 +#define LOCAL_ENABLE_USER 0x08 +#define LOCAL_TRUST_ACCOUNT 0x10 +#define LOCAL_SET_NO_PASSWORD 0x20 #define LOCAL_SET_LDAP_ADMIN_PW 0x40 +#define LOCAL_GET_DOM_SID 0x80 /* key and data in the connections database - used in smbstatus and smbd */ struct connections_key { |