Begin File: dbm.tgz Description:database routines Keywords: dbm database Version: Entered-date: Author: Ported-by: Original-site: Copying-policy: Supplemental: This is release 1.4 of GNU dbm. Better documentation will be written soon. For now, this file briefly describes the contents of this release and how to use it. GNU dbm is a set of database routines that use extendible hashing and works similar to the standard UNIX dbm routines. The basic unit of data is the structure typedef struct { char *dptr; int dsize; } datum; The following is a quick list of the routines. After this list, a longer description of each routine will be given. An include file will be produced that can be included by the user. The file is "gdbm.h". The following routines are defined in terms of gdbm.h: GDBM_FILE gdbm_open ( name, block_size, read_write, mode, fatal_func ) void gdbm_close ( dbf ) int gdbm_store ( dbf, key, content, flags ) datum gdbm_fetch ( dbf, key ) int gdbm_delete ( dbf, key ) datum gdbm_firstkey ( dbf ) datum gdbm_nextkey ( dbf, key ) int gdbm_reorganize ( dbf ) For compatibility with the standard dbm, the following routines are defined. There is an include file for dbm users called "dbm.h". int dbminit ( name ) int store ( key, content ) datum fetch ( key ) int delete ( key ) datum firstkey () datum nextkey ( key ) There are also compatibility routines for ndbm. For ndbm compatiblity routines, you need the include file "ndbm.h". The routines are: DBM *dbm_open (name, flags, mode) void dbm_close (file) datum dbm_fetch (file, key) int dbm_store (file, key, content, flags) int dbm_delete (file, key) datum dbm_firstkey (file) datum dbm_nextkey (file) int dbm_error (file) int dbm_clearerr (file) int dbm_pagfno (file) int dbm_dirfno (file) archive contents: drwxrwxr-x 0 jwall techies Jan 9 14:44 dbm -rw-r----- 0 jwall techies 12491 Oct 7 13:40 dbm/COPYING -rw-r----- 0 jwall techies 3555 Feb 10 21:35 dbm/Makefile -rw-r----- 0 jwall techies 13665 Oct 7 13:41 dbm/README -rw-r----- 0 jwall techies 12225 Feb 10 02:20 dbm/bucket.c -rw-r----- 0 jwall techies 6119 Feb 24 08:06 dbm/builddbm.c -rw-r----- 0 jwall techies 2320 Oct 7 13:40 dbm/changelo.g -rw-r----- 0 jwall techies 4115 Oct 7 13:40 dbm/conv2gdb.c -rw-r----- 0 jwall techies 2334 Oct 7 13:40 dbm/dbm.h -rw-r----- 0 jwall techies 1949 Oct 7 13:40 dbm/dbmclose.c -rw-r----- 0 jwall techies 2073 Oct 7 13:40 dbm/dbmdelet.c -rw-r----- 0 jwall techies 2064 Oct 7 13:40 dbm/dbmdirfn.c -rw-r----- 0 jwall techies 2420 Oct 7 13:40 dbm/dbmfetch.c -rw-r----- 0 jwall techies 4445 Oct 7 13:40 dbm/dbminit.c -rw-r----- 0 jwall techies 5260 Oct 7 13:40 dbm/dbmopen.c -rw-r----- 0 jwall techies 2064 Oct 7 13:40 dbm/dbmpagfn.c -rw-r----- 0 jwall techies 2920 Oct 7 13:40 dbm/dbmseq.c -rw-r----- 0 jwall techies 2205 Oct 7 13:40 dbm/dbmstore.c -rw-r----- 0 jwall techies 2042 Oct 7 13:40 dbm/delete.c -rw-r----- 0 jwall techies 2557 Oct 7 13:40 dbm/extern.h -rw-r----- 0 jwall techies 13012 Oct 7 13:40 dbm/falloc.c -rw-r----- 0 jwall techies 2425 Oct 7 13:40 dbm/fetch.c -rw-r----- 0 jwall techies 6402 Feb 10 02:21 dbm/findkey.c -rw-r----- 0 jwall techies 0 Feb 22 14:30 dbm/gdbm.pro -rw-r----- 0 jwall techies 2510 Oct 7 13:41 dbm/gdbmclos.c -rw-r----- 0 jwall techies 10883 Oct 7 13:41 dbm/gdbmdefs.h -rw-r----- 0 jwall techies 4549 Oct 7 13:41 dbm/gdbmdele.c -rw-r----- 0 jwall techies 1773 Oct 7 13:41 dbm/gdbmerrno.h -rw-r----- 0 jwall techies 3092 Feb 10 09:01 dbm/gdbmfetc.c -rw-r----- 0 jwall techies 13538 Oct 7 13:41 dbm/gdbmopen.c -rw-r----- 0 jwall techies 6351 Oct 7 13:41 dbm/gdbmreor.c -rw-r----- 0 jwall techies 4907 Feb 10 02:22 dbm/gdbmseq.c -rw-r----- 0 jwall techies 6467 Oct 7 13:41 dbm/gdbmstor.c -rw-r----- 0 jwall techies 2288 Oct 7 13:41 dbm/global.c -rw-r----- 0 jwall techies 2504 Oct 7 13:41 dbm/hash.c -rw-r----- 0 jwall techies 3050 Oct 7 13:41 dbm/ndbm.h -rw-r----- 0 jwall techies 2831 Oct 7 13:41 dbm/seq.c -rw-r----- 0 jwall techies 2151 Oct 7 13:41 dbm/store.c -rw-r----- 0 jwall techies 4726 Feb 10 02:15 dbm/systems.h -rw-r----- 0 jwall techies 5447 Oct 7 13:41 dbm/testdbm.c -rw-r----- 0 jwall techies 16366 Oct 7 13:41 dbm/testgdbm.c -rw-r----- 0 jwall techies 5363 Oct 7 13:41 dbm/testndbm.c -rw-r----- 0 jwall techies 4265 Oct 7 13:41 dbm/update.c -rw-r----- 0 jwall techies 2010 Oct 7 13:41 dbm/version.c End