summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-15 09:35:37 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-15 09:35:37 +0000
commitf94f053b7618157f6caaa1d65553c1abb3aba917 (patch)
treecd2d3ffa7fc95942bc5ad906dabc3f38a4fa5b92 /source3/include
parentb41b1daa36c9ff48616fe23c99da1a00bf11ff84 (diff)
downloadsamba-f94f053b7618157f6caaa1d65553c1abb3aba917.tar.gz
samba-f94f053b7618157f6caaa1d65553c1abb3aba917.tar.bz2
samba-f94f053b7618157f6caaa1d65553c1abb3aba917.zip
added support for kernel level share modes. These are a (small) hack,
I suspect we will either get rid of them or do them properly at some stage. (This used to be commit fabe1f350e1fc58db33d22cebd38652950697ced)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in1
-rw-r--r--source3/include/includes.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index ab9da3a7ad..699dbe6fc9 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -142,6 +142,7 @@
#undef SIZEOF_OFF_T
#undef STAT_STATVFS64
#undef HAVE_LIBREADLINE
+#undef HAVE_KERNEL_SHARE_MODES
#undef HAVE_KERNEL_OPLOCKS_IRIX
#undef HAVE_KERNEL_OPLOCKS_LINUX
#undef HAVE_KERNEL_CHANGE_NOTIFY
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 432fd09f0b..a1a04333bf 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -868,6 +868,15 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#include <dlfcn.h>
#endif
+#if HAVE_KERNEL_SHARE_MODES
+#ifndef LOCK_MAND
+#define LOCK_MAND 32 /* This is a mandatory flock */
+#define LOCK_READ 64 /* ... Which allows concurrent read operations */
+#define LOCK_WRITE 128 /* ... Which allows concurrent write operations */
+#define LOCK_RW 192 /* ... Which allows concurrent read & write ops */
+#endif
+#endif
+
extern int DEBUGLEVEL;
#endif /* _INCLUDES_H */