summaryrefslogtreecommitdiff
path: root/source/include/smb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-28 14:19:54 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-28 14:19:54 +0000
commitcc8fe0f0629eea9acc39e30d8d76d5890a5b6978 (patch)
tree19dde5504adad16221642c632367e6ff926e9626 /source/include/smb.h
parentc63fee2b282c8b53f87e63995384602b66a805a6 (diff)
downloadsamba-cc8fe0f0629eea9acc39e30d8d76d5890a5b6978.tar.gz
SYSV IPC implementation of fast share modes.
It will try sysv IPC first, then if that fails it will try mmap(), then after that it will try share files. I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the moment. Probably a lot more could have it defined. In fact, the vast majority of systems support it. Need autoconf again :-) It should actually be faster than the mmap() version, and doesn't need any lock files. This means the problem of the share mem file being on a NFS drive will be gone.
Diffstat (limited to 'source/include/smb.h')
-rw-r--r--source/include/smb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 057a0b75506..d7a576de857 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -46,8 +46,12 @@
/* Default number of hash buckets used in shared memory share mode */
#ifndef SHMEM_HASH_SIZE
+#ifdef SEMMSL
+#define SHMEM_HASH_SIZE (SEMMSL-1)
+#else
#define SHMEM_HASH_SIZE 113
#endif
+#endif
#define NMB_PORT 137
#define DGRAM_PORT 138
@@ -1328,7 +1332,6 @@ struct share_ops {
/* each implementation of the shared memory code needs
to support the following operations */
struct shmem_ops {
- BOOL (*open)(char *, int );
BOOL (*close)( void );
int (*alloc)(int );
BOOL (*free)(int );