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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       ndbm.h — definitions for ndbm database operations
14

SYNOPSIS

16       #include <ndbm.h>
17

DESCRIPTION

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

APPLICATION USAGE

56       None.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       <stddef.h>, <sys_types.h>
66
67       The System Interfaces volume of POSIX.1‐2008, dbm_clearerr()
68
70       Portions  of  this text are reprinted and reproduced in electronic form
71       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
72       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
73       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
74       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
75       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
76       event of any discrepancy between this version and the original IEEE and
77       The Open Group Standard, the original IEEE and The Open Group  Standard
78       is  the  referee document. The original Standard can be obtained online
79       at http://www.unix.org/online.html .
80
81       Any typographical or formatting errors that appear  in  this  page  are
82       most likely to have been introduced during the conversion of the source
83       files to man page format. To report such errors,  see  https://www.ker
84       nel.org/doc/man-pages/reporting_bugs.html .
85
86
87
88IEEE/The Open Group                  2013                           ndbm.h(0P)
Impressum