1<ndbm.h>(0P)               POSIX Programmer's Manual              <ndbm.h>(0P)
2
3
4

NAME

6       ndbm.h - definitions for ndbm database operations
7

SYNOPSIS

9       #include <ndbm.h>
10

DESCRIPTION

12       The  <ndbm.h>  header  shall  define the datum type as a structure that
13       includes at least the following members:
14
15
16              void   *dptr  A pointer to the application's data.
17              size_t  dsize The size of the object pointed to by dptr.
18
19       The size_t type shall be defined as described in <stddef.h> .
20
21       The <ndbm.h> header shall define the DBM type.
22
23       The following constants shall be defined as  possible  values  for  the
24       store_mode argument to dbm_store():
25
26       DBM_INSERT
27              Insertion of new entries only.
28
29       DBM_REPLACE
30              Allow replacing existing entries.
31
32
33       The following shall be declared as functions and may also be defined as
34       macros. Function prototypes shall be provided.
35
36
37              int     dbm_clearerr(DBM *);
38              void    dbm_close(DBM *);
39              int     dbm_delete(DBM *, datum);
40              int     dbm_error(DBM *);
41              datum   dbm_fetch(DBM *, datum);
42              datum   dbm_firstkey(DBM *);
43              datum   dbm_nextkey(DBM *);
44              DBM    *dbm_open(const char *, int, mode_t);
45              int     dbm_store(DBM *, datum, datum, int);
46
47       The mode_t type shall  be  defined  through  typedef  as  described  in
48       <sys/types.h> .
49
50       The following sections are informative.
51

APPLICATION USAGE

53       None.
54

RATIONALE

56       None.
57

FUTURE DIRECTIONS

59       None.
60

SEE ALSO

62       <stddef.h>,    <sys/types.h>,   the   System   Interfaces   volume   of
63       IEEE Std 1003.1-2001, dbm_clearerr()
64
66       Portions of this text are reprinted and reproduced in  electronic  form
67       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
68       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
69       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
70       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
71       event of any discrepancy between this version and the original IEEE and
72       The Open Group Standard, the original IEEE and The Open Group  Standard
73       is  the  referee document. The original Standard can be obtained online
74       at http://www.opengroup.org/unix/online.html .
75
76
77
78IEEE/The Open Group                  2003                         <ndbm.h>(0P)
Impressum