summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-06-10 16:39:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-06-10 16:39:17 +0000
commit43a0df915d441d36ff0047f2037dc7c168585bdd (patch)
tree1dee641b6af136d8841c21f8fc7724c2d9f6f681 /sys/lib
parentcfd539ca4285123ea483dd4be5e0b158976a00c3 (diff)
Add EINVAL. Alpha 2nd stage booter gets EINVAL not ENOENT when
asked to loas a non-existent file for some reason.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/strerror.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libsa/strerror.c b/sys/lib/libsa/strerror.c
index b1b61ab9084..d39aea7059e 100644
--- a/sys/lib/libsa/strerror.c
+++ b/sys/lib/libsa/strerror.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strerror.c,v 1.4 1996/12/08 15:15:58 niklas Exp $ */
+/* $OpenBSD: strerror.c,v 1.5 1997/06/10 16:39:16 millert Exp $ */
/* $NetBSD: strerror.c,v 1.11 1996/10/13 02:29:08 christos Exp $ */
/*-
@@ -71,6 +71,8 @@ static char ebuf[64];
return "Exec format error";
case EIO:
return "Input/output error";
+ case EINVAL:
+ return "Invalid argument";
default:
sprintf(ebuf, "Unknown error: code %d", err);