From chris@holly.dyndns.org Thu Apr 22 12:48:29 1999
Return-Path: <chris@holly.dyndns.org>
Received: from leap.innerx.net (unknown [38.179.176.25])
	by hub.freebsd.org (Postfix) with ESMTP id 297AE153A0
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Apr 1999 12:44:39 -0700 (PDT)
	(envelope-from chris@holly.dyndns.org)
Received: from holly.dyndns.org (ip82.houston2.tx.pub-ip.psi.net [38.11.201.82])
	by leap.innerx.net (Postfix) with ESMTP id 2571B3707D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Apr 1999 15:41:51 -0400 (EDT)
Received: (from chris@localhost)
	by holly.dyndns.org (8.9.3/8.9.3) id OAA06064;
	Thu, 22 Apr 1999 14:42:05 -0500 (CDT)
	(envelope-from chris)
Message-Id: <199904221942.OAA06064@holly.dyndns.org>
Date: Thu, 22 Apr 1999 14:42:05 -0500 (CDT)
From: Chris Costello <chris@holly.dyndns.org>
Reply-To: chris@calldei.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: [Patch] Typo in err.h, missing lines in errlst.c
X-Send-Pr-Version: 3.2

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 22 12:50:00 PDT 1999
>Closed-Date:    Sat Apr 24 11:28:30 PDT 1999
>Last-Modified:  Sat Apr 24 11:28:43 PDT 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 24 11:28:30 PDT 1999 
State-Changed-Why:  
committed, thanks! 
>Unformatted:
