summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-10-28 16:38:44 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-10-28 16:38:44 +0000
commitcc105ae67622fa3604fd63976973cfe800bf75c1 (patch)
treed3872e0a6c59a2d8bad0e53b29850b3f0820fcc4
parent97f5b330f199201962e945af68b91e8b67d02716 (diff)
Add compat errno mappings for the ENOTSUP errno addition.
ok deraadt@
-rw-r--r--sys/compat/ibcs2/ibcs2_errno.c5
-rw-r--r--sys/compat/linux/linux_error.c5
-rw-r--r--sys/compat/osf1/osf1_cvt_errno.c5
-rw-r--r--sys/compat/svr4/svr4_errno.c5
4 files changed, 12 insertions, 8 deletions
diff --git a/sys/compat/ibcs2/ibcs2_errno.c b/sys/compat/ibcs2/ibcs2_errno.c
index a03e0178fef..4b2e137ced9 100644
--- a/sys/compat/ibcs2/ibcs2_errno.c
+++ b/sys/compat/ibcs2/ibcs2_errno.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_errno.c,v 1.5 2007/10/27 22:42:10 miod Exp $ */
+/* $OpenBSD: ibcs2_errno.c,v 1.6 2009/10/28 16:38:43 jsg Exp $ */
/* $NetBSD: ibcs2_errno.c,v 1.2 1996/05/03 17:05:16 christos Exp $ */
/*
@@ -126,5 +126,6 @@ int bsd2ibcs_errno[1 + ELAST] = {
IBCS2_ENOSYS, /* 87 unavailable? */
IBCS2_ENOSYS, /* 88 unavailable? */
IBCS2_EIDRM, /* 89 */
- IBCS2_ENOMSG /* 90 */
+ IBCS2_ENOMSG, /* 90 */
+ IBCS2_ENOSYS /* 91 unavailable? */
};
diff --git a/sys/compat/linux/linux_error.c b/sys/compat/linux/linux_error.c
index 1296b349fa5..707669b26d3 100644
--- a/sys/compat/linux/linux_error.c
+++ b/sys/compat/linux/linux_error.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_error.c,v 1.4 2007/10/27 22:42:11 miod Exp $ */
+/* $OpenBSD: linux_error.c,v 1.5 2009/10/28 16:38:43 jsg Exp $ */
/* $NetBSD: linux_error.c,v 1.2 1995/04/22 19:48:32 christos Exp $ */
/*
@@ -126,5 +126,6 @@ int linux_error[1 + ELAST] = {
-LINUX_EOVERFLOW,
-LINUX_ENOSYS, /* not mapped (ECANCELED) */
-LINUX_EIDRM,
- -LINUX_ENOMSG
+ -LINUX_ENOMSG,
+ -LINUX_ENOSYS /* not mapped (ENOTSUP) */
};
diff --git a/sys/compat/osf1/osf1_cvt_errno.c b/sys/compat/osf1/osf1_cvt_errno.c
index 57365498579..a57b14f3c35 100644
--- a/sys/compat/osf1/osf1_cvt_errno.c
+++ b/sys/compat/osf1/osf1_cvt_errno.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_cvt_errno.c,v 1.2 2007/10/27 22:42:11 miod Exp $ */
+/* $OpenBSD: osf1_cvt_errno.c,v 1.3 2009/10/28 16:38:43 jsg Exp $ */
/* $NetBSD: osf1_cvt_errno.c,v 1.4 1999/05/01 02:16:01 cgd Exp $ */
/*
@@ -133,5 +133,6 @@ const int osf1_errno_rxlist[1 + ELAST] = {
OSF1_EOVERFLOW, /* EOVERFLOW (87) -> 103 */
OSF1_ECANCELED, /* ECANCELED (88) -> 94 */
OSF1_EIDRM, /* EIDRM (89) -> 81 */
- OSF1_ENOMSG /* ENOMSG (90) -> 80 */
+ OSF1_ENOMSG, /* ENOMSG (90) -> 80 */
+ OSF1_ENOTSUP /* ENOTSUP (91) -> 99 */
};
diff --git a/sys/compat/svr4/svr4_errno.c b/sys/compat/svr4/svr4_errno.c
index fdefb1ecf1a..746a55ffdb2 100644
--- a/sys/compat/svr4/svr4_errno.c
+++ b/sys/compat/svr4/svr4_errno.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_errno.c,v 1.4 2007/10/27 22:42:11 miod Exp $ */
+/* $OpenBSD: svr4_errno.c,v 1.5 2009/10/28 16:38:43 jsg Exp $ */
/* $NetBSD: svr4_errno.c,v 1.7 1998/10/23 04:06:00 erh Exp $ */
/*
@@ -127,5 +127,6 @@ int native_to_svr4_errno[1 + ELAST] = {
SVR4_EOVERFLOW,
SVR4_ENOSYS, /* ECANCELED */
SVR4_EIDRM,
- SVR4_ENOMSG
+ SVR4_ENOMSG,
+ SVR4_ENOSYS /* ENOTSUP */
};