summaryrefslogtreecommitdiff
path: root/source3/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
commitc9fa24b7a8809a7963f0970cf2dd21f6804e31a4 (patch)
tree4bd06b65991e13b8aac3771f5d27a54b1fdb6505 /source3/include/smb.h
parent7c20ee083f6820a4c8776cefae3e0477f79ea934 (diff)
downloadsamba-c9fa24b7a8809a7963f0970cf2dd21f6804e31a4.tar.gz
samba-c9fa24b7a8809a7963f0970cf2dd21f6804e31a4.tar.bz2
samba-c9fa24b7a8809a7963f0970cf2dd21f6804e31a4.zip
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. (This used to be commit cc8fe0f0629eea9acc39e30d8d76d5890a5b6978)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 057a0b7550..d7a576de85 100644
--- a/source3/include/smb.h
+++ b/source3/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 );