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
|
/* ****************************************************************************
* errno.h -- libc error codes.
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
*
* This file is part of the 'all/core' module in libcarrot, an experimental
* modular libc project.
*
* This file is governed by the CeCILL-C license under French law and abiding
* by the rules of distribution of free software. You can use, modify and or
* redistribute it under the terms of the CeCILL-C license as circulated by
* CEA, CNRS and INRIA at the following URL: http://www.cecill.info
*
* As a counterpart to the access to the source code and rights to copy, modify
* and redistribute granted by the license, users are provided only with a
* limited warranty and the software's author, the holder of the economic
* rights, and the successive licensors have only limited liability.
*
* In this respect, the user's attention is drawn to the risks associated with
* loading, using, modifying and/or developing and reproducing the software by
* the user in light of its specific status of free software, that may mean
* that it is complicated to manipulate, and that also therefore means that it
* is reserved for developers and experienced professionals having in-depth
* computer knowledge. Users are therefore encouraged to load and test the
* software's suitability as regards their requirements in conditions enabling
* the security of their systems and/or data to be ensured and, more generally,
* to use and operate it in the same conditions as regards security.
*
* The fact that you are presently reading this means you have had knowledge of
* the CeCILL-C license and that you accept its terms.
* ************************************************************************* */
#include <cdefs.h>
__BEGIN_DECLS
/* Global variable management.
* Because of potential concurrency problems, write access to this variable
* should be executed using the `__set_errno()` function below. */
extern volatile int errno;
extern void __set_errno _OF((int __value));
/* Errors from the Renesas/Hitachi C/C++ library (version 06.00). */
#define ERANGE 1100 /* `data out of RANGE`:
* result of a function cannot be represented as a float
* type value, or if overflow or underflow occurs. */
#define EDOM 1101 /* `data out of DOMain`:
* the value of a parameter input to a function is
* outside the range of values defined in
* the function */
#define EDIV 1102 /* ??? (XXX) */
#define ESTRN 1104 /* `Too long string`:
* the length of string literal exceeds 512 chars. */
#define PTRERR 1106 /* `Invalid file pointer`:
* the NULL pointer constant is specified as the file
* pointer value. */
#define SEQERR 1108 /* ??? (XXX) */
#define ECBASE 1200 /* `Invalid radix`:
* an invalid radix was specified. */
#define ETLN 1202 /* `Number too long`:
* the specified number exceeds the number of
* significiant digits. */
#define EEXP 1204 /* `Exponent too large`:
* the specified exponent exceeds three digits. */
#define EEXPN 1206 /* `Normalized exponent too large`:
* the exponent exceeds three digits when the string
* literal is normalized to the IEEE standard decimal
* format. */
#define ENUM 1208 /* ??? (XXX) */
#define EFLOATO 1210 /* `Overflow out of float`:
* A float-type decimal value is out of range
* (overflow). */
#define EFLOATU 1220 /* `Underflow out of float`:
* A float-type decimal value is out of range
* (underflow). */
#define EDBLO 1250 /* `Overflow out of double`:
* A double-type decimal value is out of range
* (overflow). */
#define EDBLU 1260 /* `Underflow out of double`:
* A double-type decimal value is out of range
* (underflow). */
#define ELDBLO 1270 /* `Overflow out of long double`:
* A long double-type decimal value is out of range
* (overflow). */
#define ELDBLU 1280 /* `Underflow out of long double`:
* A long double-type decimal value is out of range
* (underflow). */
#define NOTOPN 1300 /* `File not open`:
* The file is not open. */
#define EBADF 1302 /* `Bad file number`:
* An output function was issued for an input-only file,
* or an input function was issued for an output-only
* file. */
#define ECSPEC 1304 /* `Error in format`:
* An erroneous format was specified for an input/output
* function using format. */
/* Some more functions extracted from the 09.00 manual. */
# define EFIXEDO 1400 /* `Overflow out of __fixed` */
# define EFIXEDU 1410 /* `Underflow out of __fixed` */
# define EACCUMO 1420 /* `Overflow out of __accum` */
# define EACCUMU 1430 /* `Underflow out of __accum` */
# define ELFIXEDO 1440 /* `Overflow out of long __fixed` */
# define ELFIXEDU 1450 /* `Underflow out of long __fixed` */
# define ELACCUMO 1460 /* `Overflow out of long __accum` */
# define ELACCUMU 1470 /* `Underflow out of long __accum` */
# define EMALRESM 2100 /* `Error in waiting semaphore`:
* Failed to define semaphore resources for malloc. */
# define EMALFRSM 2101 /* `Error in signaling semaphore`:
* Failed to define semaphore resources for malloc. */
# define ETOKRESM 2110 /* `Error in waiting semaphore`:
* Failed to define semaphore resources for strtok. */
# define ETOKFRSM 2111 /* `Error in signaling semaphore`:
* Failed to release semaphore resources for malloc. */
# define EIOBRESM 2120 /* `Error in waiting semaphore`:
* Failed to release semaphore resources
* for `_iob` (fopen). */
# define EIOBFRSM 2121 /* `Error in signaling semaphore`:
* Failed to release semaphore resources
* for `_iob` (fopen). */
__END_DECLS
|