HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
n
ndbm(3X) ndbm(3X)
aligned, the block should be copied to an appropriately aligned area.
The
.pag file will contain holes so that its apparent size is about four times its actual content. Some
older UNIX systems create real file blocks for these holes when touched. These files cannot be copied by
normal means (such as cp(1), cat(1), tar(1), or ar(1)) without expansion.
dptr pointers returned by these subroutines point into static storage that is changed by subsequent calls.
The sum of the sizes of a key/content pair must not exceed the internal block size (currently 1024 bytes).
Moreover, all key/content pairs that hash together must fit on a single block.
dbm_store returns an
error in the event that a disk block fills with inseparable data.
dbm_delete does not physically reclaim file space, although it does make it available for reuse.
The order of keys presented by
dbm_firstkey and
dbm_nextkey depends on a hashing function,
not on anything interesting.
A
dbm_store or dbm_delete during a pass through the keys by
dbm_firstkey and
dbm_nextkey may yield unexpected results.
AUTHOR
ndbm(3X) was developed by the University of California, Berkeley.
SEE ALSO
dbm(3C), thread_safety(5).
Section 3−−646 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: September 2004