[BACK]Return to svr4_errno.c CVS log [TXT][DIR] Up to [local] / sys / compat / svr4

Annotation of sys/compat/svr4/svr4_errno.c, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: svr4_errno.c,v 1.3 2000/08/23 16:37:29 brad Exp $     */
                      2: /*     $NetBSD: svr4_errno.c,v 1.7 1998/10/23 04:06:00 erh Exp $       */
                      3:
                      4: /*
                      5:  * Copyright (c) 1994 Christos Zoulas
                      6:  * All rights reserved.
                      7:  *
                      8:  * Redistribution and use in source and binary forms, with or without
                      9:  * modification, are permitted provided that the following conditions
                     10:  * are met:
                     11:  * 1. Redistributions of source code must retain the above copyright
                     12:  *    notice, this list of conditions and the following disclaimer.
                     13:  * 2. Redistributions in binary form must reproduce the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer in the
                     15:  *    documentation and/or other materials provided with the distribution.
                     16:  * 3. The name of the author may not be used to endorse or promote products
                     17:  *    derived from this software without specific prior written permission
                     18:  *
                     19:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     20:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     21:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     22:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     23:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     24:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     25:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     26:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     27:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     28:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     29:  */
                     30:
                     31: /*
                     32:  * Translate error codes.
                     33:  */
                     34:
                     35: #include <compat/svr4/svr4_errno.h>
                     36:
                     37:
                     38: int native_to_svr4_errno[] = {
                     39:        0,
                     40:        SVR4_EPERM,
                     41:        SVR4_ENOENT,
                     42:        SVR4_ESRCH,
                     43:        SVR4_EINTR,
                     44:        SVR4_EIO,
                     45:        SVR4_ENXIO,
                     46:        SVR4_E2BIG,
                     47:        SVR4_ENOEXEC,
                     48:        SVR4_EBADF,
                     49:        SVR4_ECHILD,
                     50:        SVR4_EDEADLK,
                     51:        SVR4_ENOMEM,
                     52:        SVR4_EACCES,
                     53:        SVR4_EFAULT,
                     54:        SVR4_ENOTBLK,
                     55:        SVR4_EBUSY,
                     56:        SVR4_EEXIST,
                     57:        SVR4_EXDEV,
                     58:        SVR4_ENODEV,
                     59:        SVR4_ENOTDIR,
                     60:        SVR4_EISDIR,
                     61:        SVR4_EINVAL,
                     62:        SVR4_ENFILE,
                     63:        SVR4_EMFILE,
                     64:        SVR4_ENOTTY,
                     65:        SVR4_ETXTBSY,
                     66:        SVR4_EFBIG,
                     67:        SVR4_ENOSPC,
                     68:        SVR4_ESPIPE,
                     69:        SVR4_EROFS,
                     70:        SVR4_EMLINK,
                     71:        SVR4_EPIPE,
                     72:        SVR4_EDOM,
                     73:        SVR4_ERANGE,
                     74:        SVR4_EAGAIN,
                     75:        SVR4_EINPROGRESS,
                     76:        SVR4_EALREADY,
                     77:        SVR4_ENOTSOCK,
                     78:        SVR4_EDESTADDRREQ,
                     79:        SVR4_EMSGSIZE,
                     80:        SVR4_EPROTOTYPE,
                     81:        SVR4_ENOPROTOOPT,
                     82:        SVR4_EPROTONOSUPPORT,
                     83:        SVR4_ESOCKTNOSUPPORT,
                     84:        SVR4_EOPNOTSUPP,
                     85:        SVR4_EPFNOSUPPORT,
                     86:        SVR4_EAFNOSUPPORT,
                     87:        SVR4_EADDRINUSE,
                     88:        SVR4_EADDRNOTAVAIL,
                     89:        SVR4_ENETDOWN,
                     90:        SVR4_ENETUNREACH,
                     91:        SVR4_ENETRESET,
                     92:        SVR4_ECONNABORTED,
                     93:        SVR4_ECONNRESET,
                     94:        SVR4_ENOBUFS,
                     95:        SVR4_EISCONN,
                     96:        SVR4_ENOTCONN,
                     97:        SVR4_ESHUTDOWN,
                     98:        SVR4_ETOOMANYREFS,
                     99:        SVR4_ETIMEDOUT,
                    100:        SVR4_ECONNREFUSED,
                    101:        SVR4_ELOOP,
                    102:        SVR4_ENAMETOOLONG,
                    103:        SVR4_EHOSTDOWN,
                    104:        SVR4_EHOSTUNREACH,
                    105:        SVR4_ENOTEMPTY,
                    106:        SVR4_EPROCLIM,
                    107:        SVR4_EUSERS,
                    108:        SVR4_EDQUOT,
                    109:        SVR4_ESTALE,
                    110:        SVR4_EREMOTE,
                    111:        SVR4_EBADRPC,
                    112:        SVR4_ERPCMISMATCH,
                    113:        SVR4_EPROGUNAVAIL,
                    114:        SVR4_EPROGMISMATCH,
                    115:        SVR4_EPROCUNAVAIL,
                    116:        SVR4_ENOLCK,
                    117:        SVR4_ENOSYS,
                    118:        SVR4_EFTYPE,
                    119:        SVR4_EAUTH,
                    120:        SVR4_ENEEDAUTH,
                    121: };

CVSweb