Date: Thu, 22 Apr 1999 14:42:05 -0500 (CDT) From: Chris Costello <chris@holly.dyndns.org> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/11285: [Patch] Typo in err.h, missing lines in errlst.c Message-ID: <199904221942.OAA06064@holly.dyndns.org>
index | next in thread | raw e-mail
>Number: 11285
>Category: misc
>Synopsis: [Patch] Typo in err.h, missing lines in errlst.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 22 12:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Chris Costello
>Release: FreeBSD 4.0-CURRENT i386
>Organization:
None, whatsoever.
>Environment:
Sources mentioned above from the latest in the CVS tree.
>Description:
EAUTH, ENEEDAUTH, EIDRM, ENOMSG, EOVERFLOW, ECANCELED, and EILSEQ are
all missing from sys_errlist[]
>How-To-Repeat:
#include <err.h>
#include <errno.h>
#include <stdio.h>
int
main(void)
{
int i;
for (i = 79; i < ELAST; i++) {
errno = i;
warn("%d", i);
}
exit(0);
}
>Fix:
Patches:
Index: errno.h
===================================================================
RCS file: /cvs/src/sys/sys/errno.h,v
retrieving revision 1.11
diff -u -r1.11 errno.h
--- errno.h 1998/12/14 18:54:04 1.11
+++ errno.h 1999/04/22 18:53:19
@@ -163,7 +163,7 @@
#define ENEEDAUTH 81 /* Need authenticator */
#define EIDRM 82 /* Identifier removed */
#define ENOMSG 83 /* No message of desired type */
-#define EOVERFLOW 84 /* Value to large to be stored in data type */
+#define EOVERFLOW 84 /* Value too large to be stored in data type */
#define ECANCELED 85 /* Operation canceled */
#define EILSEQ 86 /* Illegal byte sequence */
#define ELAST 86 /* Must be equal largest errno */
Index: errlst.c
===================================================================
RCS file: /cvs/src/lib/libc/gen/errlst.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 errlst.c
--- errlst.c 1994/05/27 04:56:42 1.1.1.1
+++ errlst.c 1999/04/22 19:20:46
@@ -136,6 +136,13 @@
"No locks available", /* 77 - ENOLCK */
"Function not implemented", /* 78 - ENOSYS */
"Inappropriate file type or format", /* 79 - EFTYPE */
+ "Authentication error", /* 80 - EAUTH */
+ "Need authenticator", /* 81 - ENEEDAUTH */
+ "Identifier removed", /* 82 - EIDRM */
+ "No message of desired type", /* 83 - ENOMSG */
+ "Value too large to be stored in data type", /* 84 - EOVERFLOW */
+ "Operation canceled", /* 85 - ECANCELED */
+ "Illegal byte sequence", /* 86 - EILSEQ */
};
int errno;
const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904221942.OAA06064>
