ohash_qlookup man page on MirBSD

Man page or keyword search:  
man Server   6113 pages
apropos Keyword Search (all sections)
Output format
MirBSD logo
[printable version]

OPEN_HASH_HELPER(3)	   BSD Programmer's Manual	   OPEN_HASH_HELPER(3)

NAME
     ohash_interval, ohash_create_entry, ohash_qlookup, ohash_qlookupi -
     helper functions for open hashing

SYNOPSIS
     #include <sys/types.h>
     #include <stddef.h>
     #include <ohash.h>

     u_int32_t
     ohash_interval(const char *start, const char **pend);

     void *
     ohash_create_entry(struct ohash_info *info, const char *start,
	     const char **pend);

     unsigned int
     ohash_qlookupi(struct ohash *h, const char *start, const char **pend);

     unsigned int
     ohash_qlookup(struct ohash *h, const char *start);

DESCRIPTION
     These functions are commonly used to simplify open hashing usage, and use
     similar conventions. They operate indifferently on NUL-terminated strings
     (by setting *pend = NULL) or memory ranges
     (delimited by start and *pend). For NUL-terminated strings, as a side ef-
     fect, those functions set *pend to the terminating NUL byte.

     ohash_interval() is a simple hashing function that yields good results on
     common data sets.

     ohash_create_entry() can be used to create a new record with a given key.
     In that case, the alloc field of info should point to a malloc(3)-like
     function to allocate the storage.

     ohash_qlookupi() is a wrapper function that simply calls ohash_interval()
     and ohash_lookup_interval().

     ohash_qlookup() is a variation on ohash_qlookupi() designed for NUL-
     terminated strings.

SEE ALSO
     ohash_init(3)

STANDARDS
     Those functions are completely non-standard and should be avoided in
     portable programs.

HISTORY
     Those functions were designed and written for OpenBSD make(1) by Marc
     Espie in 1999.

MirOS BSD #10-current	      February 23, 2001				     1
[top]

List of man pages available for MirBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net