#include <stdio.h>
Include dependency graph for sdbm.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | DBM |
struct | datum |
Defines | |
#define | DBLKSIZ 4096 |
#define | PBLKSIZ 1024 |
#define | PAIRMAX 1008 |
#define | SPLTMAX 10 |
#define | DIRFEXT ".dir" |
#define | PAGFEXT ".pag" |
#define | DBM_RDONLY 0x1 |
#define | DBM_IOERR 0x2 |
#define | sdbm_rdonly(db) ((db)->flags & DBM_RDONLY) |
#define | sdbm_error(db) ((db)->flags & DBM_IOERR) |
#define | sdbm_clearerr(db) ((db)->flags &= ~DBM_IOERR) |
#define | sdbm_dirfno(db) ((db)->dirf) |
#define | sdbm_pagfno(db) ((db)->pagf) |
#define | proto(p) () |
#define | DBM_INSERT 0 |
#define | DBM_REPLACE 1 |
Functions | |
DBM *sdbm_open | proto ((char *, int, int)) |
void sdbm_close | proto ((DBM *)) |
datum sdbm_fetch | proto ((DBM *, datum)) |
int sdbm_store | proto ((DBM *, datum, datum, int)) |
DBM *sdbm_prep | proto ((char *, char *, int, int)) |
long sdbm_hash | proto ((char *, int)) |
Variables | |
datum | nullitem |
#define DBLKSIZ 4096 |
#define DBM_RDONLY 0x1 |
#define DBM_REPLACE 1 |
#define DIRFEXT ".dir" |
#define PAGFEXT ".pag" |
#define PAIRMAX 1008 |
#define PBLKSIZ 1024 |
Definition at line 13 of file sdbm.h.
Referenced by chkpage(), delpair(), fitpair(), getnext(), getnkey(), getpage(), makroom(), putpair(), sdbm_delete(), sdbm_firstkey(), sdbm_prep(), sdbm_store(), seepair(), and splpage().
#define proto | ( | p | ) | () |
Definition at line 60 of file sdbm.h.
Referenced by getaddrinfo(), sock_s_getservbyname(), and sock_s_getservbyport().
#define sdbm_clearerr | ( | db | ) | ((db)->flags &= ~DBM_IOERR) |
#define sdbm_rdonly | ( | db | ) | ((db)->flags & DBM_RDONLY) |
long sdbm_hash proto | ( | (char *, int) | ) |
DBM* sdbm_prep proto | ( | (char *, char *, int, int) | ) |
DBM* sdbm_open proto | ( | (char *, int, int) | ) |
Definition at line 145 of file _sdbm.c.
Referenced by getnkey(), getpair(), sdbm_fetch(), sdbm_firstkey(), and sdbm_nextkey().