summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-09-25 17:36:21 +0000
committerJeremy Allison <jra@samba.org>1997-09-25 17:36:21 +0000
commit776674812b426609958f5802c1573ba812f7426c (patch)
treee572484eceef91d97f2153fb71b979621ecd1b05
parent6dd6b1383c0ed10c0897dea44f247befc15b03cc (diff)
downloadsamba-776674812b426609958f5802c1573ba812f7426c.tar.gz
samba-776674812b426609958f5802c1573ba812f7426c.tar.bz2
samba-776674812b426609958f5802c1573ba812f7426c.zip
Added missing slow share mode offset defines. Somehow
they got lost. Jeremy (jallison@whistle.com). (This used to be commit ce9cdc2f6175e4a6195f8875360cd945ae60052c)
-rw-r--r--source3/include/smb.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index a67b3c02c9..435b71f4db 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -498,6 +498,40 @@ struct connect_record
#endif /* USE_OPLOCKS */
#endif /* LOCKING_VERSION */
+#if !defined(FAST_SHARE_MODES)
+/*
+ * Defines for slow share modes.
+ */
+
+/*
+ * Locking file header lengths & offsets.
+ */
+#define SMF_VERSION_OFFSET 0
+#define SMF_NUM_ENTRIES_OFFSET 4
+#define SMF_FILENAME_LEN_OFFSET 8
+#define SMF_HEADER_LENGTH 10
+
+#ifdef USE_OPLOCKS
+#define SMF_ENTRY_LENGTH 16
+#else /* USE_OPLOCKS */
+#define SMF_ENTRY_LENGTH 18
+#endif /* USE_OPLOCKS */
+
+/*
+ * Share mode record offsets.
+ */
+
+#define SME_SEC_OFFSET 0
+#define SME_USEC_OFFSET 4
+#define SME_SHAREMODE_OFFSET 8
+#define SME_PID_OFFSET 12
+
+#ifdef USE_OPLOCKS
+#define SME_PORT_OFFSET 16
+#endif /* USE_OPLOCKS */
+
+#endif /* FAST_SHARE_MODES */
+
/* these are useful macros for checking validity of handles */
#define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < MAX_OPEN_FILES))
#define OPEN_FNUM(fnum) (VALID_FNUM(fnum) && Files[fnum].open)