From a7f6c0a642428372f5fab30a5eb94f9bcc0f6173 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Jul 2000 03:53:49 +0000 Subject: don't need shmem any more (This used to be commit a81371a4fd6f7972b054bea90428d1d2fd6d1d22) --- source3/include/local.h | 5 ----- source3/include/smb.h | 29 ----------------------------- 2 files changed, 34 deletions(-) (limited to 'source3/include') diff --git a/source3/include/local.h b/source3/include/local.h index fbde799e5c..b5590f9f91 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -47,11 +47,6 @@ #define SYSLOG_FACILITY LOG_DAEMON #endif -/* Default size of shared memory used for share mode locking */ -#ifndef SHMEM_SIZE -#define SHMEM_SIZE (1024*1024) -#endif - /* * Default number of maximum open files per smbd. This is * also limited by the maximum available file descriptors diff --git a/source3/include/smb.h b/source3/include/smb.h index fdd987457b..67ca5ef173 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -680,35 +680,6 @@ typedef struct #define SHAREMODE_FN(fn) \ void (*fn)(share_mode_entry *, char*) -/* each implementation of the share mode code needs - to support the following operations */ -struct share_ops { - BOOL (*stop_mgmt)(void); - BOOL (*lock_entry)(connection_struct *, SMB_DEV_T , SMB_INO_T , int *); - BOOL (*unlock_entry)(connection_struct *, SMB_DEV_T , SMB_INO_T , int ); - int (*get_entries)(connection_struct *, int , SMB_DEV_T , SMB_INO_T , share_mode_entry **); - void (*del_entry)(int , files_struct *); - BOOL (*set_entry)(int, files_struct *, uint16 , uint16 ); - BOOL (*mod_entry)(int, files_struct *, void (*)(share_mode_entry *, SMB_DEV_T, SMB_INO_T, void *), void *); - int (*forall)(void (*)(share_mode_entry *, char *)); - void (*status)(FILE *); -}; - -/* each implementation of the shared memory code needs - to support the following operations */ -struct shmem_ops { - BOOL (*shm_close)( void ); - int (*shm_alloc)(int ); - BOOL (*shm_free)(int ); - int (*get_userdef_off)(void); - void *(*offset2addr)(int ); - int (*addr2offset)(void *addr); - BOOL (*lock_hash_entry)(unsigned int); - BOOL (*unlock_hash_entry)( unsigned int ); - BOOL (*get_usage)(int *,int *,int *); - unsigned (*hash_size)(void); -}; - /* * Each implementation of the password database code needs * to support the following operations. -- cgit