summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-17 07:15:54 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-17 07:15:54 +0000
commit4c5c26b1ef4be862fc2037dd5fcc120cb35bacca (patch)
tree7cd5959978923119145186e2a3838eb4ea3d3737 /source3/include/smb.h
parent72ed7049d88e5296ebec362189e62a384385ad34 (diff)
downloadsamba-4c5c26b1ef4be862fc2037dd5fcc120cb35bacca.tar.gz
samba-4c5c26b1ef4be862fc2037dd5fcc120cb35bacca.tar.bz2
samba-4c5c26b1ef4be862fc2037dd5fcc120cb35bacca.zip
now that we have no global arrays we can start to split up the monster
server.c without breaking things. this splits off netprot.c and fileio.c for negprot and read/write/seek handling respectively. (This used to be commit b3d7014643ec9f2eef6e6f598f5b9db1fe2f930d)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index c68f88cbdd..e88737f046 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -200,6 +200,13 @@ implemented */
#define aDIR (1L<<4)
#define aARCH (1L<<5)
+/* for readability... */
+#define IS_DOS_READONLY(test_mode) (((test_mode) & aRONLY) != 0)
+#define IS_DOS_DIR(test_mode) (((test_mode) & aDIR) != 0)
+#define IS_DOS_ARCHIVE(test_mode) (((test_mode) & aARCH) != 0)
+#define IS_DOS_SYSTEM(test_mode) (((test_mode) & aSYSTEM) != 0)
+#define IS_DOS_HIDDEN(test_mode) (((test_mode) & aHIDDEN) != 0)
+
/* deny modes */
#define DENY_DOS 0
#define DENY_ALL 1