blob: 39c06830e2eb90d7487bd01c28990334d2909e23 (
plain)
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
|
/* ****************************************************************************
* 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 free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Lesser Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this file. If not, see <http://www.gnu.org/licenses/>.
* ************************************************************************* */
#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
|