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 sets the following error codes. */
|
---|
31 | #define GDBM_NO_ERROR 0
|
---|
32 | #define GDBM_MALLOC_ERROR 1
|
---|
33 | #define GDBM_BLOCK_SIZE_ERROR 2
|
---|
34 | #define GDBM_FILE_OPEN_ERROR 3
|
---|
35 | #define GDBM_FILE_WRITE_ERROR 4
|
---|
36 | #define GDBM_FILE_SEEK_ERROR 5
|
---|
37 | #define GDBM_FILE_READ_ERROR 6
|
---|
38 | #define GDBM_BAD_MAGIC_NUMBER 7
|
---|
39 | #define GDBM_EMPTY_DATABASE 8
|
---|
40 | #define GDBM_CANT_BE_READER 9
|
---|
41 | #define GDBM_CANT_BE_WRITER 10
|
---|
42 | #define GDBM_READER_CANT_DELETE 11
|
---|
43 | #define GDBM_READER_CANT_STORE 12
|
---|
44 | #define GDBM_READER_CANT_REORGANIZE 13
|
---|
45 | #define GDBM_UNKNOWN_UPDATE 14
|
---|
46 | #define GDBM_ITEM_NOT_FOUND 15
|
---|
47 | #define GDBM_REORGANIZE_FAILED 16
|
---|
48 | #define GDBM_CANNOT_REPLACE 17
|
---|
49 | #define GDBM_ILLEGAL_DATA 18
|
---|
50 | #define GDBM_OPT_ALREADY_SET 19
|
---|
51 | #define GDBM_OPT_ILLEGAL 20
|
---|
52 |
|
---|
53 | typedef int gdbm_error; /* For compatibilities sake. */
|
---|
54 |
|
---|
55 | extern gdbm_error gdbm_errno;
|
---|