summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-08-09 10:15:48 +0000
committerphk <phk@FreeBSD.org>2002-08-09 10:15:48 +0000
commitade75a9d08449a597f9e70f161d9e40ed722d320 (patch)
treee0a61008fc0cc411b650e78d443a046e63c9d309 /lib
parent9d73d0dd122e2ce7df338d16beff65b7bbbc42c5 (diff)
downloadFreeBSD-src-ade75a9d08449a597f9e70f161d9e40ed722d320.zip
FreeBSD-src-ade75a9d08449a597f9e70f161d9e40ed722d320.tar.gz
Introduce a new error return code:
#define EDOFUS 88 /* Programming error */ This can be used to signal error situations which indicate that the program logic or assumptions is deficient.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/errlst.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/errlst.c b/lib/libc/gen/errlst.c
index 08a9625..493a778 100644
--- a/lib/libc/gen/errlst.c
+++ b/lib/libc/gen/errlst.c
@@ -146,6 +146,9 @@ const char *const sys_errlist[] = {
"Operation canceled", /* 85 - ECANCELED */
"Illegal byte sequence", /* 86 - EILSEQ */
"Attribute not found", /* 87 - ENOATTR */
+
+/* General */
+ "Programming error", /* 88 - EDOFUS */
};
int errno;
const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);
OpenPOWER on IntegriCloud