netbsd man page for elf_hash

Query: elf_hash

OS: netbsd

Section: 3

Links: netbsd man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ELF_HASH(3)						   BSD Library Functions Manual 					       ELF_HASH(3)

NAME
elf_hash -- compute a hash value for a string
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h> unsigned long elf_hash(const char *name);
DESCRIPTION
Function elf_hash() computes a portable hash value for the null terminated string pointed to by argument name. The hash value returned is will be identical across machines of different architectures. This allows hash tables to be built on one machine and correctly used on another of a different architecture. The hash value returned is also guaranteed not to be the bit pattern of all ones (~0UL).
IMPLEMENTATION NOTES
The library internally uses unsigned 32 bit arithmetic to compute the hash value.
SEE ALSO
elf(3), gelf(3)
BSD
August 15, 2006 BSD
Related Man Pages
elf_hash(3elf) - mojave
elf_hash(3elf) - osx
elf_hash(3elf) - xfree86
elf_hash(3elf) - osf1
elf_hash(3elf) - posix
Similar Topics in the Unix Linux Community
Unix File Permissions
NetBSD 6.1.2: apm and admd not found
Adding a List of Times
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD