*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> ranhash (3)              
Title
Content
Arch
Section
 

ranhash(3)

Contents


NAME    [Toc]    [Back]

       ranhashinit,  ranhash,  ranlookup - access routine for the
       symbol table definition file in archives

SYNOPSIS    [Toc]    [Back]

       #include <ldfcn.h>

       int ranhashinit(
               struct ranlib *pran,
               char *pstr,
               int size ); ranhash(
               char *name ); struct ranlib *ranlookup(
               char *name );

PARAMETERS    [Toc]    [Back]

       Points to an array of ranlib structures.   Points  to  the
       corresponding  ranlib string table (which are used only by
       ranlookup).  Specifies the size  of  the  hash  table  and
       should be a power of 2. If the size is not a power of 2, a
       1 is returned; otherwise, a 0 is returned.

DESCRIPTION    [Toc]    [Back]

       The ranhashinit() routine initializes  static  information
       for future use by ranhash() and ranlookup().

       The  ranhash()  routine, given a name, returns a hash number.
 It uses a multiplicative hashing  algorithm  and  the
       size argument to ranhashinit().

       The  ranlookup() routine looks up name in the ranlib table
       specified by ranhashinit().  It uses the ranhash() routine
       as  a  starting  point. Then, it does a rehash from there.
       This routine returns a pointer to a valid ranlib entry  on
       a  match.  If no matches are found (the "emptiness" can be
       inferred if the ran_off field is zero), the  empty  ranlib
       structure  hash  table should be sparse. This routine does
       not expect to run out of places to look in the table.  For
       example,  if  you  collide on all entries in the table, an
       error is printed to stderr and a zero is returned.

AUTHOR    [Toc]    [Back]

       Mark I. Himelstein

SEE ALSO    [Toc]    [Back]

      
      
       ar(1)



                                                       ranhash(3)
[ Back ]
 Similar pages
Name OS Title
libst_intro Tru64 symbol table and object file access library
libst Tru64 symbol table and object file access library
st_pp_delete Tru64 access and modify optimization symbol table information in an object file
st_pp_append Tru64 access and modify optimization symbol table information in an object file
st_obj_pt_setup Tru64 access and modify optimization symbol table information in an object file
st_pp_start Tru64 access and modify optimization symbol table information in an object file
st_proc_pp Tru64 access and modify optimization symbol table information in an object file
st_pp_find_tag Tru64 access and modify optimization symbol table information in an object file
st_pp_add Tru64 access and modify optimization symbol table information in an object file
stfd IRIX routines that provide access to per file descriptor section of the symbol table
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service