source: trunk/src/binutils/include/gdbm.h@ 1109

Last change on this file since 1109 was 10, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.4 KB
Line 
1/* GNU DBM - DataBase Manager include file
2 Copyright 1989, 1991 Free Software Foundation, Inc.
3 Written by Philip A. Nelson.
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18
19/* You may contact the author by:
20 e-mail: [email protected]
21 us-mail: Philip A. Nelson
22 Computer Science Department
23 Western Washington University
24 Bellingham, WA 98226
25 phone: (206) 676-3035
26
27*************************************************************************/
28
29/* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
30 can create the database. */
31#define GDBM_READER 0
32#define GDBM_WRITER 1
33#define GDBM_WRCREAT 2
34#define GDBM_NEWDB 3
35
36/* Parameters to gdbm_store for simple insertion or replacement. */
37#define GDBM_INSERT 0
38#define GDBM_REPLACE 1
39
40
41/* The data and key structure. This structure is defined for compatibility. */
42typedef struct {
43 char *dptr;
44 int dsize;