logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

ndbm.h.0p (2855B)


  1. '\" et
  2. .TH ndbm.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. ndbm.h
  12. \(em definitions for ndbm database operations
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <ndbm.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <ndbm.h>
  21. header shall define the
  22. .BR datum
  23. type as a structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. void *dptr \fRA pointer to the application's data.\fR
  28. size_t dsize \fRThe size of the object pointed to by \fIdptr.\fR
  29. .fi
  30. .P
  31. .RE
  32. .P
  33. The
  34. .IR <ndbm.h>
  35. header shall define the
  36. .BR size_t
  37. type as described in
  38. .IR <stddef.h> .
  39. .P
  40. The
  41. .IR <ndbm.h>
  42. header shall define the
  43. .BR DBM
  44. type.
  45. .P
  46. The
  47. .IR <ndbm.h>
  48. header shall define the following symbolic constants as possible
  49. values for the
  50. .IR store_mode
  51. argument to
  52. \fIdbm_store\fR():
  53. .IP DBM_INSERT 14
  54. Insertion of new entries only.
  55. .IP DBM_REPLACE 14
  56. Allow replacing existing entries.
  57. .P
  58. The following shall be declared as functions and may also be defined as
  59. macros. Function prototypes shall be provided.
  60. .sp
  61. .RS 4
  62. .nf
  63. int dbm_clearerr(DBM *);
  64. void dbm_close(DBM *);
  65. int dbm_delete(DBM *, datum);
  66. int dbm_error(DBM *);
  67. datum dbm_fetch(DBM *, datum);
  68. datum dbm_firstkey(DBM *);
  69. datum dbm_nextkey(DBM *);
  70. DBM *dbm_open(const char *, int, mode_t);
  71. int dbm_store(DBM *, datum, datum, int);
  72. .fi
  73. .P
  74. .RE
  75. .P
  76. The
  77. .IR <ndbm.h>
  78. header shall define the
  79. .BR mode_t
  80. type through
  81. .BR typedef ,
  82. as described in
  83. .IR <sys/types.h> .
  84. .LP
  85. .IR "The following sections are informative."
  86. .SH "APPLICATION USAGE"
  87. None.
  88. .SH RATIONALE
  89. None.
  90. .SH "FUTURE DIRECTIONS"
  91. None.
  92. .SH "SEE ALSO"
  93. .IR "\fB<stddef.h>\fP",
  94. .IR "\fB<sys_types.h>\fP"
  95. .P
  96. The System Interfaces volume of POSIX.1\(hy2017,
  97. .IR "\fIdbm_clearerr\fR\^(\|)"
  98. .\"
  99. .SH COPYRIGHT
  100. Portions of this text are reprinted and reproduced in electronic form
  101. from IEEE Std 1003.1-2017, Standard for Information Technology
  102. -- Portable Operating System Interface (POSIX), The Open Group Base
  103. Specifications Issue 7, 2018 Edition,
  104. Copyright (C) 2018 by the Institute of
  105. Electrical and Electronics Engineers, Inc and The Open Group.
  106. In the event of any discrepancy between this version and the original IEEE and
  107. The Open Group Standard, the original IEEE and The Open Group Standard
  108. is the referee document. The original Standard can be obtained online at
  109. http://www.opengroup.org/unix/online.html .
  110. .PP
  111. Any typographical or formatting errors that appear
  112. in this page are most likely
  113. to have been introduced during the conversion of the source files to
  114. man page format. To report such errors, see
  115. https://www.kernel.org/doc/man-pages/reporting_bugs.html .