1139799Simp/*- 211394Sswallace * ibcs2_errno.c 311394Sswallace * Copyright (c) 1995 Scott Bartram 411394Sswallace * All rights reserved. 511394Sswallace * 611394Sswallace * Redistribution and use in source and binary forms, with or without 711394Sswallace * modification, are permitted provided that the following conditions 811394Sswallace * are met: 911394Sswallace * 1. Redistributions of source code must retain the above copyright 1011394Sswallace * notice, this list of conditions and the following disclaimer. 1111394Sswallace * 2. Redistributions in binary form must reproduce the above copyright 1211394Sswallace * notice, this list of conditions and the following disclaimer in the 1311394Sswallace * documentation and/or other materials provided with the distribution. 1411394Sswallace * 3. All advertising materials mentioning features or use of this software 1511394Sswallace * must display the following acknowledgement: 1611394Sswallace * This product includes software developed by Scott Bartram. 1711394Sswallace * 4. The name of the author may not be used to endorse or promote products 1811394Sswallace * derived from this software without specific prior written permission 1911394Sswallace * 2011394Sswallace * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2111394Sswallace * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2211394Sswallace * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2311394Sswallace * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2411394Sswallace * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2511394Sswallace * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2611394Sswallace * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2711394Sswallace * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2811394Sswallace * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2911394Sswallace * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3011394Sswallace */ 3111394Sswallace 32115684Sobrien#include <sys/cdefs.h> 33115684Sobrien__FBSDID("$FreeBSD: releng/10.2/sys/i386/ibcs2/ibcs2_errno.c 139799 2005-01-06 23:22:04Z imp $"); 34115684Sobrien 3541796Sdt#include <sys/errno.h> 3611397Sswallace#include <i386/ibcs2/ibcs2_errno.h> 3711394Sswallace 3841796Sdtint bsd_to_ibcs2_errno[ELAST + 1] = { 3911394Sswallace 0, /* 0 */ 4011394Sswallace IBCS2_EPERM, /* 1 */ 4111394Sswallace IBCS2_ENOENT, /* 2 */ 4211394Sswallace IBCS2_ESRCH, /* 3 */ 4311394Sswallace IBCS2_EINTR, /* 4 */ 4411394Sswallace IBCS2_EIO, /* 5 */ 4511394Sswallace IBCS2_ENXIO, /* 6 */ 4611394Sswallace IBCS2_E2BIG, /* 7 */ 4711394Sswallace IBCS2_ENOEXEC, /* 8 */ 4811394Sswallace IBCS2_EBADF, /* 9 */ 4911394Sswallace IBCS2_ECHILD, /* 10 */ 5011394Sswallace IBCS2_EDEADLK, /* 11 */ 5111394Sswallace IBCS2_ENOMEM, /* 12 */ 5211394Sswallace IBCS2_EACCES, /* 13 */ 5311394Sswallace IBCS2_EFAULT, /* 14 */ 5411394Sswallace IBCS2_ENOTBLK, /* 15 */ 5511394Sswallace IBCS2_EBUSY, /* 16 */ 5611394Sswallace IBCS2_EEXIST, /* 17 */ 5711394Sswallace IBCS2_EXDEV, /* 18 */ 5811394Sswallace IBCS2_ENODEV, /* 19 */ 5911394Sswallace IBCS2_ENOTDIR, /* 20 */ 6011394Sswallace IBCS2_EISDIR, /* 21 */ 6111394Sswallace IBCS2_EINVAL, /* 22 */ 6211394Sswallace IBCS2_ENFILE, /* 23 */ 6311394Sswallace IBCS2_EMFILE, /* 24 */ 6411394Sswallace IBCS2_ENOTTY, /* 25 */ 6511394Sswallace IBCS2_ETXTBSY, /* 26 */ 6611394Sswallace IBCS2_EFBIG, /* 27 */ 6711394Sswallace IBCS2_ENOSPC, /* 28 */ 6811394Sswallace IBCS2_ESPIPE, /* 29 */ 6911394Sswallace IBCS2_EROFS, /* 30 */ 7011394Sswallace IBCS2_EMLINK, /* 31 */ 7111394Sswallace IBCS2_EPIPE, /* 32 */ 7211394Sswallace IBCS2_EDOM, /* 33 */ 7311394Sswallace IBCS2_ERANGE, /* 34 */ 7411394Sswallace IBCS2_EAGAIN, /* 35 */ 7511394Sswallace IBCS2_EINPROGRESS, /* 36 */ 7611394Sswallace IBCS2_EALREADY, /* 37 */ 7711394Sswallace IBCS2_ENOTSOCK, /* 38 */ 7811394Sswallace IBCS2_EDESTADDRREQ, /* 39 */ 7911394Sswallace IBCS2_EMSGSIZE, /* 40 */ 8011394Sswallace IBCS2_EPROTOTYPE, /* 41 */ 8111394Sswallace IBCS2_ENOPROTOOPT, /* 42 */ 8211394Sswallace IBCS2_EPROTONOSUPPORT, /* 43 */ 8311394Sswallace IBCS2_ESOCKTNOSUPPORT, /* 44 */ 8411394Sswallace IBCS2_EOPNOTSUPP, /* 45 */ 8511394Sswallace IBCS2_EPFNOSUPPORT, /* 46 */ 8611394Sswallace IBCS2_EAFNOSUPPORT, /* 47 */ 8711394Sswallace IBCS2_EADDRINUSE, /* 48 */ 8811394Sswallace IBCS2_EADDRNOTAVAIL, /* 49 */ 8911394Sswallace IBCS2_ENETDOWN, /* 50 */ 9011394Sswallace IBCS2_ENETUNREACH, /* 51 */ 9111394Sswallace IBCS2_ENETRESET, /* 52 */ 9211394Sswallace IBCS2_ECONNABORTED, /* 53 */ 9311394Sswallace IBCS2_ECONNRESET, /* 54 */ 9411394Sswallace IBCS2_ENOBUFS, /* 55 */ 9511394Sswallace IBCS2_EISCONN, /* 56 */ 9611394Sswallace IBCS2_ENOTCONN, /* 57 */ 9711394Sswallace IBCS2_ESHUTDOWN, /* 58 */ 9811394Sswallace IBCS2_ETOOMANYREFS, /* 59 */ 9911394Sswallace IBCS2_ETIMEDOUT, /* 60 */ 10011394Sswallace IBCS2_ECONNREFUSED, /* 61 */ 10111394Sswallace IBCS2_ELOOP, /* 62 */ 10211394Sswallace IBCS2_ENAMETOOLONG, /* 63 */ 10311394Sswallace IBCS2_EHOSTDOWN, /* 64 */ 10411394Sswallace IBCS2_EHOSTUNREACH, /* 65 */ 10511394Sswallace IBCS2_ENOTEMPTY, /* 66 */ 10611394Sswallace 0, /* 67 */ 10711394Sswallace 0, /* 68 */ 10811394Sswallace 0, /* 69 */ 10911394Sswallace IBCS2_ESTALE, /* 70 */ 11011394Sswallace IBCS2_EREMOTE, /* 71 */ 11111394Sswallace 0, /* 72 */ 11211394Sswallace 0, /* 73 */ 11311394Sswallace 0, /* 74 */ 11411394Sswallace 0, /* 75 */ 11511394Sswallace 0, /* 76 */ 11611394Sswallace IBCS2_ENOLCK, /* 77 */ 11711394Sswallace IBCS2_ENOSYS, /* 78 */ 11811394Sswallace 0, /* 79 */ 11911394Sswallace 0, /* 80 */ 12011394Sswallace 0, /* 81 */ 12135179Ssos IBCS2_EIDRM, /* 82 */ 12235179Ssos IBCS2_ENOMSG, /* 83 */ 12341796Sdt IBCS2_EOVERFLOW, /* 84 */ 12441796Sdt 0, /* 85 */ 12541796Sdt IBCS2_EILSEQ, /* 86 */ 12611394Sswallace}; 12711394Sswallace 128