From ca0bed1400febad3813b264418faa002c63e51a7 Mon Sep 17 00:00:00 2001 From: Thomas Veerman Date: Thu, 15 Jul 2010 12:36:41 +0000 Subject: [PATCH] Add EOVERFLOW error condition --- include/errno.h | 1 + lib/libc/ansi/errlist.c | 2 +- man/man2/intro.2 | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/errno.h b/include/errno.h index ba5213e0d..9f2536106 100644 --- a/include/errno.h +++ b/include/errno.h @@ -78,6 +78,7 @@ extern int errno; /* place where the error numbers go */ #define EIDRM (_SIGN 43) /* Identifier removed */ #define EILSEQ (_SIGN 44) /* illegal byte sequence */ #define EFTYPE (_SIGN 45) /* wrong file format or type */ +#define EOVERFLOW (_SIGN 46) /* value too large to store in data type */ /* The following errors relate to networking. */ #define EPACKSIZE (_SIGN 50) /* invalid packet size for some protocol */ diff --git a/lib/libc/ansi/errlist.c b/lib/libc/ansi/errlist.c index 0f725f551..bbbbadf22 100644 --- a/lib/libc/ansi/errlist.c +++ b/lib/libc/ansi/errlist.c @@ -53,7 +53,7 @@ const char *_sys_errlist[] = { "Identifier removed", /* EIDRM */ "Illegal byte sequence", /* EILSEQ */ "Wrong file format or type", /* EFTYPE */ - unknown, /* 46 */ + "Value too large to be stored in data type", /* EOVERFLOW */ unknown, /* 47 */ unknown, /* 48 */ unknown, /* 49 */ diff --git a/man/man2/intro.2 b/man/man2/intro.2 index 755060446..50e5eb338 100644 --- a/man/man2/intro.2 +++ b/man/man2/intro.2 @@ -259,6 +259,9 @@ An IPC identifier was removed while the current process was waiting on it. A wide character/multibyte character encoding error occurred. .It Er 45 EFTYPE Em "Inappropriate file type or format" . Attempted a file operation on a file of a type for which it was invalid. +.It Er 46 EOVERFLOW Em "Value too large to be stored in data type" . +A numerical result of the function was too large to be stored in the +caller-provided space. .It Er 50 EPACKSIZE Em "Invalid packet size" . .It Er 51 ENOBUFS Em "\&No buffer space available" . An operation on a socket or pipe was not performed because