diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/local.h | 5 | ||||
-rw-r--r-- | source3/include/smb.h | 29 |
2 files changed, 0 insertions, 34 deletions
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. |