From f6e558f5d4104f01846295684822d33b1bec2d80 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 13 Jul 2010 20:05:47 +0000 Subject: [PATCH] errno EFTYPE --- include/errno.h | 1 + lib/libc/ansi/errlist.c | 2 +- man/man2/intro.2 | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/errno.h b/include/errno.h index d39dba519..ba5213e0d 100644 --- a/include/errno.h +++ b/include/errno.h @@ -77,6 +77,7 @@ extern int errno; /* place where the error numbers go */ #define ERESTART (_SIGN 41) /* service restarted */ #define EIDRM (_SIGN 43) /* Identifier removed */ #define EILSEQ (_SIGN 44) /* illegal byte sequence */ +#define EFTYPE (_SIGN 45) /* wrong file format or 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 f829e03af..0f725f551 100644 --- a/lib/libc/ansi/errlist.c +++ b/lib/libc/ansi/errlist.c @@ -52,7 +52,7 @@ const char *_sys_errlist[] = { unknown, /* 42 */ "Identifier removed", /* EIDRM */ "Illegal byte sequence", /* EILSEQ */ - unknown, /* 45 */ + "Wrong file format or type", /* EFTYPE */ unknown, /* 46 */ unknown, /* 47 */ unknown, /* 48 */ diff --git a/man/man2/intro.2 b/man/man2/intro.2 index e16b2039d..0c1b2b434 100644 --- a/man/man2/intro.2 +++ b/man/man2/intro.2 @@ -232,6 +232,7 @@ A path name lookup involved too many symbolic links. .en 41 ERESTART "Service restarted .en 43 EIDRM "Identifier removed .en 44 EILSEQ "Illegal byte sequence +.en 45 EFTYPE "Wrong file format or type .en 50 EPACKSIZE "Invalid packet size .en 51 ENOBUFS "Not enough buffers left .en 52 EBADIOCTL "Illegal ioctl for device -- 2.44.0