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

NAME

12       ndbm.h — definitions for ndbm database operations
13

SYNOPSIS

15       #include <ndbm.h>
16

DESCRIPTION

18       The <ndbm.h> header shall define the datum type as a  structure,  which
19       shall include at least the following members:
20
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
41           int     dbm_clearerr(DBM *);
42           void    dbm_close(DBM *);
43           int     dbm_delete(DBM *, datum);
44           int     dbm_error(DBM *);
45           datum   dbm_fetch(DBM *, datum);
46           datum   dbm_firstkey(DBM *);
47           datum   dbm_nextkey(DBM *);
48           DBM    *dbm_open(const char *, int, mode_t);
49           int     dbm_store(DBM *, datum, datum, int);
50
51       The <ndbm.h> header shall define the mode_t type  through  typedef,  as
52       described in <sys/types.h>.
53
54       The following sections are informative.
55

APPLICATION USAGE

57       None.
58

RATIONALE

60       None.
61

FUTURE DIRECTIONS

63       None.
64

SEE ALSO

66       <stddef.h>, <sys_types.h>
67
68       The System Interfaces volume of POSIX.1‐2017, dbm_clearerr()
69
71       Portions  of  this text are reprinted and reproduced in electronic form
72       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
73       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
74       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
75       Electrical  and  Electronics Engineers, Inc and The Open Group.  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.opengroup.org/unix/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                  2017                           ndbm.h(0P)
Impressum