1 | /* gdbmerrno.h - The enumeration type describing all the dbm errors. */
|
---|
2 |
|
---|
3 | /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
|
---|
4 | Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc.
|
---|
5 |
|
---|
6 | GDBM is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | GDBM is distributed in the hope that it will be useful,
|
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | GNU General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with GDBM; see the file COPYING. If not, write to
|
---|
18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 |
|
---|
20 | You may contact the author by:
|
---|
21 | e-mail: [email protected]
|
---|
22 | us-mail: Philip A. Nelson
|
---|
23 | Computer Science Department
|
---|
24 | Western Washington University
|
---|
25 | Bellingham, WA 98226
|
---|
26 |
|
---|
27 | *************************************************************************/
|
---|
28 |
|
---|
29 |
|
---|
30 | /* gdbm sends back the following error codes in the variable gdbm_errno. */
|
---|
31 | typedef enum { GDBM_NO_ERROR,
|
---|
32 | GDBM_MALLOC_ERROR,
|
---|
33 | GDBM_BLOCK_SIZE_ERROR,
|
---|
34 | GDBM_FILE_OPEN_ERROR,
|
---|
35 | GDBM_FILE_WRITE_ERROR,
|
---|
36 | GDBM_FILE_SEEK_ERROR,
|
---|
37 | GDBM_FILE_READ_ERROR,
|
---|
38 | GDBM_BAD_MAGIC_NUMBER,
|
---|
39 | GDBM_EMPTY_DATABASE,
|
---|
40 | GDBM_CANT_BE_READER,
|
---|
41 | GDBM_CANT_BE_WRITER,
|
---|
42 | GDBM_READER_CANT_DELETE,
|
---|
43 | GDBM_READER_CANT_STORE,
|
---|
44 | GDBM_READER_CANT_REORGANIZE,
|
---|
45 | GDBM_UNKNOWN_UPDATE,
|
---|
46 | GDBM_ITEM_NOT_FOUND,
|
---|
47 | GDBM_REORGANIZE_FAILED,
|
---|
48 | GDBM_CANNOT_REPLACE,
|
---|
49 | GDBM_ILLEGAL_DATA,
|
---|
50 | GDBM_OPT_ALREADY_SET,
|
---|
51 | GDBM_OPT_ILLEGAL}
|
---|
52 | gdbm_error;
|
---|
53 |
|
---|
54 | extern gdbm_error gdbm_errno;
|
---|