/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#ifdef AFS_NT40_ENV
#include <winsock2.h>
}
/* ht_Reset
- * reinitialize a memory hash table.
+ * reinitialize a memory hash table.
* Calls ht_ResetT to invalidate the two block arrays.
*/
}
afs_int32
-ht_GetTableBlock(struct ubik_trans *ut, struct memoryHashTable *mht,
- afs_uint32 hash, int old, struct memoryHTBlock **blockP,
+ht_GetTableBlock(struct ubik_trans *ut, struct memoryHashTable *mht,
+ afs_uint32 hash, int old, struct memoryHTBlock **blockP,
int *boP)
{
struct hashTable *ht = NULL;
}
dbadr
-ht_LookupBucket(struct ubik_trans *ut, struct memoryHashTable *mht,
+ht_LookupBucket(struct ubik_trans *ut, struct memoryHashTable *mht,
afs_uint32 hash, int old)
{
struct memoryHTBlock *block;
}
afs_uint32
-ht_HashEntry(struct memoryHashTable *mht,
+ht_HashEntry(struct memoryHashTable *mht,
char *e) /* entry's address (in b) */
{
int type = ntohl(mht->ht->functionType);
*/
afs_int32
-ht_LookupEntry(struct ubik_trans *ut,
- struct memoryHashTable *mht,
+ht_LookupEntry(struct ubik_trans *ut,
+ struct memoryHashTable *mht,
void *key, /* pointer to lookup key to match */
dbadr *eaP, /* db addr of entry found or zero */
void *e) /* contents of located entry */
*/
static afs_int32
-ht_HashInList(struct ubik_trans *ut, struct memoryHashTable *mht,
+ht_HashInList(struct ubik_trans *ut, struct memoryHashTable *mht,
int *opQuota, struct memoryHTBlock *block, int blockOffset)
{
struct hashTable *ht = mht->ht;
afs_int32
ht_HashOut(struct ubik_trans *ut, struct memoryHashTable *mht, dbadr ea,
- void *e)
+ void *e)
{
afs_uint32 hash;
afs_int32 code;
afs_int32
scanHashTable(struct ubik_trans *ut, struct memoryHashTable *mhtPtr,
- int (*selectFn) (dbadr, void *, void *),
- int (*operationFn) (dbadr, void *, void *),
+ int (*selectFn) (dbadr, void *, void *),
+ int (*operationFn) (dbadr, void *, void *),
void *rockPtr)
{
struct htBlock hashTableBlock;