summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-28 22:36:54 +0000
committerpeter <peter@FreeBSD.org>2003-10-28 22:36:54 +0000
commitef64cc476e3caf97ef427ede66aff6b71cbd48b6 (patch)
treef4c66c1edef89ac64167daf322bf99e58ae6c07b /include
parent67cd4eebae31c6c9fada91f9e0cf697578cd17d3 (diff)
downloadFreeBSD-src-ef64cc476e3caf97ef427ede66aff6b71cbd48b6.zip
FreeBSD-src-ef64cc476e3caf97ef427ede66aff6b71cbd48b6.tar.gz
Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietly
send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
Diffstat (limited to 'include')
-rw-r--r--include/strhash.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/include/strhash.h b/include/strhash.h
deleted file mode 100644
index e0922f0..0000000
--- a/include/strhash.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef _STRHASH_H_INCLUDE
-#define _STRHASH_H_INCLUDE
-
-/* $FreeBSD$ */
-
-/*
- *
- * Copyright 1990
- * Terry Jones & Jordan Hubbard
- *
- * PCS Computer Systeme, GmbH.
- * Munich, West Germany
- *
- *
- * All rights reserved.
- *
- * This is unsupported software and is subject to change without notice.
- * the author makes no representations about the suitability of this software
- * for any purpose. It is supplied "as is" without express or implied
- * warranty.
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose and without fee is hereby granted, provided
- * that the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation, and that the name of the author not be used in
- * advertising or publicity pertaining to distribution of the software
- * without specific, written prior permission.
- *
- */
-
-/*
- * This is the definition file for hash.c. The plunderer from down-under
- * did the code, I just helped define the spec. That's why his name gets
- * to go first.
- */
-
-#define HASH_SZ 97
-
-typedef struct _node {
- char *key;
- void *data;
- struct _node *next;
-} hash_node;
-
-typedef struct {
- int size;
- hash_node **buckets;
-} hash_table;
-
-hash_table *hash_create(int size);
-void hash_destroy(hash_table *table, char *key,
- void (*nukefunc)(char *k, void *d));
-void *hash_search(hash_table *table, char *key, void *datum,
- void (*replace_func)(void *d));
-void hash_traverse(hash_table *table,
- int (*func)(char *k, void *d, void *arg), void *arg);
-void hash_purge(hash_table *table, void (*purge_func)(char *k, void *d));
-
-#ifdef HASH_STATS
-extern void hash_stats();
-#endif
-
-#endif /* _STRHASH_H_INCLUDE */
OpenPOWER on IntegriCloud