/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <synch.h>
#include <thread.h>
#include <memory.h>
#include <assert.h>
#include <libproc.h>
#include "ramdata.h"
#include "proto.h"
#include "htbl.h"
htbl_t *
{
int i;
/* Init mutexes */
for (i = 0; i < size; i++) {
}
return (htp);
}
void
{
int i;
}
}
}
static unsigned int
{
uint_t g;
char *p;
for (p = str; *p != '\0'; p++) {
if ((g = (hash & 0xf0000000)) != 0) {
hash ^= (g >> 24);
hash ^= g;
}
}
}
void
{
unsigned int bucket;
return;
}
}
}
/*
* If we're still here, there was no such fcall recorded
* so we make a new entry and add it to the table
*/
}
}
/*
* iterate_hash locks the table and returns an enumeration struct
* using this it is possible to iterate through the entries of a hash table
* once finished, use iter_free to unlock the table and free the struct
*/
hiter_t *
{
int b;
int i;
b = i;
}
}
return (new);
}
void
{
int i;
}
}
hentry_t *
{
int i;
return (ret);
break;
}
}
return (ret);
}
{
elem++;
}
return (elem);
}