This file is indexed.

/usr/include/eb/error.h is in libeb16-dev 4.4.3-12.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*                                                            -*- C -*-
 * Copyright (c) 1997-2006  Motoyuki Kasahara
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the project nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef EB_ERROR_H
#define EB_ERROR_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef EB_BUILD_LIBRARY
#include "defs.h"
#else
#include <eb/defs.h>
#endif

/*
 * Error codes.
 */
#define EB_SUCCESS			0
#define EB_ERR_MEMORY_EXHAUSTED		1
#define EB_ERR_EMPTY_FILE_NAME		2
#define EB_ERR_TOO_LONG_FILE_NAME	3
#define EB_ERR_BAD_FILE_NAME		4

#define EB_ERR_BAD_DIR_NAME		5
#define EB_ERR_TOO_LONG_WORD		6
#define EB_ERR_BAD_WORD			7
#define EB_ERR_EMPTY_WORD		8
#define EB_ERR_FAIL_GETCWD		9

#define EB_ERR_FAIL_OPEN_CAT		10
#define EB_ERR_FAIL_OPEN_CATAPP		11
#define EB_ERR_FAIL_OPEN_TEXT		12
#define EB_ERR_FAIL_OPEN_FONT		13
#define EB_ERR_FAIL_OPEN_APP		14

#define EB_ERR_FAIL_OPEN_BINARY		15
#define EB_ERR_FAIL_READ_CAT		16
#define EB_ERR_FAIL_READ_CATAPP		17
#define EB_ERR_FAIL_READ_TEXT		18
#define EB_ERR_FAIL_READ_FONT		19

#define EB_ERR_FAIL_READ_APP		20
#define EB_ERR_FAIL_READ_BINARY		21
#define EB_ERR_FAIL_SEEK_CAT		22
#define EB_ERR_FAIL_SEEK_CATAPP		23
#define EB_ERR_FAIL_SEEK_TEXT		24

#define EB_ERR_FAIL_SEEK_FONT		25
#define EB_ERR_FAIL_SEEK_APP		26
#define EB_ERR_FAIL_SEEK_BINARY		27
#define EB_ERR_UNEXP_CAT		28
#define EB_ERR_UNEXP_CATAPP		29

#define EB_ERR_UNEXP_TEXT		30
#define EB_ERR_UNEXP_FONT		31
#define EB_ERR_UNEXP_APP		32
#define EB_ERR_UNEXP_BINARY		33
#define EB_ERR_UNBOUND_BOOK		34

#define EB_ERR_UNBOUND_APP		35
#define EB_ERR_NO_SUB			36
#define EB_ERR_NO_APPSUB		37
#define EB_ERR_NO_FONT			38
#define EB_ERR_NO_TEXT			39

#define EB_ERR_NO_STOPCODE		40
#define EB_ERR_NO_ALT			41
#define EB_ERR_NO_CUR_SUB		42
#define EB_ERR_NO_CUR_APPSUB		43
#define EB_ERR_NO_CUR_FONT		44

#define EB_ERR_NO_CUR_BINARY		45
#define EB_ERR_NO_SUCH_SUB		46
#define EB_ERR_NO_SUCH_APPSUB		47
#define EB_ERR_NO_SUCH_FONT		48
#define EB_ERR_NO_SUCH_CHAR_BMP		49

#define EB_ERR_NO_SUCH_CHAR_TEXT	50
#define EB_ERR_NO_SUCH_SEARCH		51
#define EB_ERR_NO_SUCH_HOOK		52
#define EB_ERR_NO_SUCH_BINARY		53
#define EB_ERR_DIFF_CONTENT		54

#define EB_ERR_NO_PREV_SEARCH		55
#define EB_ERR_NO_SUCH_MULTI_ID		56
#define EB_ERR_NO_SUCH_ENTRY_ID		57
#define EB_ERR_TOO_MANY_WORDS		58
#define EB_ERR_NO_WORD			59

#define EB_ERR_NO_CANDIDATES		60
#define EB_ERR_END_OF_CONTENT		61
#define EB_ERR_NO_PREV_SEEK		62
#define EB_ERR_EBNET_UNSUPPORTED	63
#define EB_ERR_EBNET_FAIL_CONNECT	64

#define EB_ERR_EBNET_SERVER_BUSY	65
#define EB_ERR_EBNET_NO_PERMISSION	66
#define EB_ERR_UNBOUND_BOOKLIST		67
#define EB_ERR_NO_SUCH_BOOK		68


/*
 * The number of error codes.
 */
#define EB_NUMBER_OF_ERRORS		69

/*
 * The maximum length of an error message.
 */
#define EB_MAX_ERROR_MESSAGE_LENGTH	127

/*
 * Function declarations.
 */
/* error.c */
const char *eb_error_string(EB_Error_Code error_code);
const char *eb_error_message(EB_Error_Code error_code);

#ifdef __cplusplus
}
#endif

#endif /* not EB_ERROR_H */