From 8843a6379d7c1cf59f0f3673cbc567b09994b7d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 11 Jun 2000 05:57:58 +0000 Subject: Linux kernel oplocks now seem to work, but need a _lot_ of testing I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour. (This used to be commit b28cc4163bc2faaa80c5782fc02c8f03c410cdeb) --- source3/include/includes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/include/includes.h') diff --git a/source3/include/includes.h b/source3/include/includes.h index 432fd09f0b..a30a8448ad 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -868,6 +868,18 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #include #endif +#if HAVE_KERNEL_OPLOCKS_LINUX +#ifndef F_SETLEASE +#define F_SETLEASE 1024 +#endif +#ifndef F_GETLEASE +#define F_GETLEASE 1025 +#endif +#ifndef CAP_LEASE +#define CAP_LEASE 28 +#endif +#endif + extern int DEBUGLEVEL; #endif /* _INCLUDES_H */ -- cgit