summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-06-10 16:39:16 +0000
committermillert <millert@openbsd.org>1997-06-10 16:39:16 +0000
commita1c1b76086e79e834282d54b37d4610528adfa23 (patch)
tree9c49fdd45260367306b1e11095a56540b2969f69
parentdeal with random pids from fork(2) (diff)
downloadwireguard-openbsd-a1c1b76086e79e834282d54b37d4610528adfa23.tar.xz
wireguard-openbsd-a1c1b76086e79e834282d54b37d4610528adfa23.zip
Add EINVAL. Alpha 2nd stage booter gets EINVAL not ENOENT when
asked to loas a non-existent file for some reason.
-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);