diff options
author | Jeremy Allison <jra@samba.org> | 2000-01-26 21:25:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-01-26 21:25:35 +0000 |
commit | ace4006c9f7ac16b3c09b1b2222f607bccfa040e (patch) | |
tree | 772287462f6eafa8864cc9e4373b759fd5bfcf0d /source3/include/proto.h | |
parent | d867b86721e988dee56d5e9382b32c870ccb2790 (diff) | |
download | samba-ace4006c9f7ac16b3c09b1b2222f607bccfa040e.tar.gz samba-ace4006c9f7ac16b3c09b1b2222f607bccfa040e.tar.bz2 samba-ace4006c9f7ac16b3c09b1b2222f607bccfa040e.zip |
Added hash-based stat cache code from Ying Chen.
Jeremy.
(This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 03fc5b1353..205031a2a8 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -97,6 +97,15 @@ void generate_random_buffer( unsigned char *out, int len, BOOL re_seed); char *getsmbpass(char *prompt) ; +/*The following definitions come from lib/hash.c */ + +BOOL hash_table_init(hash_table *table, int num_buckets, compare_function compare_func); +int string_hash(int hash_size, const char *key); +hash_element *hash_lookup(hash_table *table, char *key); +hash_element *hash_insert(hash_table *table, char *value, char *key); +void hash_remove(hash_table *table, hash_element *hash_elem); +void hash_clear(hash_table *table); + /*The following definitions come from lib/interface.c */ void load_interfaces(void); @@ -2636,6 +2645,7 @@ void print_stat_cache_statistics(void); BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component, BOOL *bad_path, SMB_STRUCT_STAT *pst); BOOL check_name(char *name,connection_struct *conn); +BOOL reset_stat_cache( void ); /*The following definitions come from smbd/files.c */ |