summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--lib/libc/gen/errlst.c3
-rw-r--r--sys/sys/errno.h2
2 files changed, 5 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]);
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 51da067..4e916f1 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -170,6 +170,8 @@ __END_DECLS
#define ENOATTR 87 /* Attribute not found */
#define ELAST 87 /* Must be equal largest errno */
+#define EDOFUS 88 /* Programming error */
+
#endif /* _POSIX_SOURCE */
#ifdef _KERNEL
OpenPOWER on IntegriCloud