summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1998-12-14 18:54:04 +0000
committerdt <dt@FreeBSD.org>1998-12-14 18:54:04 +0000
commit7212f6ac0c5a843969add5d458d6b7332c9617f3 (patch)
treeb0c81a219949d810aa29d5bc982d9cc30a563802 /sys/i386/ibcs2
parent12bd4907ac3aaac6b246b95877854cbb7ff484a5 (diff)
downloadFreeBSD-src-7212f6ac0c5a843969add5d458d6b7332c9617f3.zip
FreeBSD-src-7212f6ac0c5a843969add5d458d6b7332c9617f3.tar.gz
Added 3 new errno values, requred by various standards: EOVERFLOW,
ECANCELED, EILSEQ. Fixed ibcs2 and especially linux EIDRM and ENOMSG errno mapping. Reviewed by: Dan Nelson <dnelson@emsphone.com>
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r--sys/i386/ibcs2/ibcs2_errno.c6
-rw-r--r--sys/i386/ibcs2/ibcs2_sysvec.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/i386/ibcs2/ibcs2_errno.c b/sys/i386/ibcs2/ibcs2_errno.c
index 6579859..b2e78c9 100644
--- a/sys/i386/ibcs2/ibcs2_errno.c
+++ b/sys/i386/ibcs2/ibcs2_errno.c
@@ -29,9 +29,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/errno.h>
#include <i386/ibcs2/ibcs2_errno.h>
-int bsd_to_ibcs2_errno[] = {
+int bsd_to_ibcs2_errno[ELAST + 1] = {
0, /* 0 */
IBCS2_EPERM, /* 1 */
IBCS2_ENOENT, /* 2 */
@@ -116,5 +117,8 @@ int bsd_to_ibcs2_errno[] = {
0, /* 81 */
IBCS2_EIDRM, /* 82 */
IBCS2_ENOMSG, /* 83 */
+ IBCS2_EOVERFLOW, /* 84 */
+ 0, /* 85 */
+ IBCS2_EILSEQ, /* 86 */
};
diff --git a/sys/i386/ibcs2/ibcs2_sysvec.c b/sys/i386/ibcs2/ibcs2_sysvec.c
index 5340962..d9ca78c 100644
--- a/sys/i386/ibcs2/ibcs2_sysvec.c
+++ b/sys/i386/ibcs2/ibcs2_sysvec.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: ibcs2_sysvec.c,v 1.10 1998/11/07 04:34:02 peter Exp $
+ * $Id: ibcs2_sysvec.c,v 1.11 1998/11/15 15:33:51 bde Exp $
*/
#include <sys/param.h>
@@ -49,7 +49,7 @@ struct sysentvec ibcs2_svr3_sysvec = {
0xFF,
NSIG,
bsd_to_ibcs2_sig,
- ELAST,
+ ELAST + 1,
bsd_to_ibcs2_errno,
0, /* trap-to-signal translation function */
0, /* fixup */
OpenPOWER on IntegriCloud