summaryrefslogtreecommitdiffstats
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
commitce9cdc2f6175e4a6195f8875360cd945ae60052c (patch)
tree019ca448893da030c27b2df9c6758d9d2864f7ac
parentf46dbaf08eb8e06a7545d2c19dce9e2dda9dcc78 (diff)
downloadsamba-ce9cdc2f6175e4a6195f8875360cd945ae60052c.tar.gz
samba-ce9cdc2f6175e4a6195f8875360cd945ae60052c.tar.xz
samba-ce9cdc2f6175e4a6195f8875360cd945ae60052c.zip
Added missing slow share mode offset defines. Somehow
they got lost. Jeremy (jallison@whistle.com).
-rw-r--r--source/include/smb.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index a67b3c02c96..435b71f4dbc 100644
--- a/source/include/smb.h
+++ b/source/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)