From 4fa2bac6e7ebe11447b535d9c8ec4348a2bbd39e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 3 May 2011 14:45:47 +0200 Subject: s3-system: move LOCK_ defines to lib/system.c Guenther --- source3/lib/system.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/lib/system.c') diff --git a/source3/lib/system.c b/source3/lib/system.c index b6cc7a8b07..74a8971c53 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -833,6 +833,15 @@ FILE *sys_fopen(const char *path, const char *type) } +#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 + /******************************************************************* A flock() wrapper that will perform the kernel flock. ********************************************************************/ -- cgit