The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/ibcs2/ibcs2_errno.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * ibcs2_errno.c
    3  * SPDX-License-Identifier: BSD-4-Clause
    4  *
    5  * Copyright (c) 1995 Scott Bartram
    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. All advertising materials mentioning features or use of this software
   17  *    must display the following acknowledgement:
   18  *      This product includes software developed by Scott Bartram.
   19  * 4. The name of the author may not be used to endorse or promote products
   20  *    derived from this software without specific prior written permission
   21  *
   22  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   24  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   25  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   27  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   31  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   32  */
   33 
   34 #include <sys/cdefs.h>
   35 __FBSDID("$FreeBSD$");
   36 
   37 #include <sys/errno.h>
   38 #include <i386/ibcs2/ibcs2_errno.h>
   39 
   40 int bsd_to_ibcs2_errno[ELAST + 1] = {
   41         0,                      /* 0 */
   42         IBCS2_EPERM,            /* 1 */
   43         IBCS2_ENOENT,           /* 2 */
   44         IBCS2_ESRCH,            /* 3 */
   45         IBCS2_EINTR,            /* 4 */
   46         IBCS2_EIO,              /* 5 */
   47         IBCS2_ENXIO,            /* 6 */
   48         IBCS2_E2BIG,            /* 7 */
   49         IBCS2_ENOEXEC,          /* 8 */
   50         IBCS2_EBADF,            /* 9 */
   51         IBCS2_ECHILD,           /* 10 */
   52         IBCS2_EDEADLK,          /* 11 */
   53         IBCS2_ENOMEM,           /* 12 */
   54         IBCS2_EACCES,           /* 13 */
   55         IBCS2_EFAULT,           /* 14 */
   56         IBCS2_ENOTBLK,          /* 15 */
   57         IBCS2_EBUSY,            /* 16 */
   58         IBCS2_EEXIST,           /* 17 */
   59         IBCS2_EXDEV,            /* 18 */
   60         IBCS2_ENODEV,           /* 19 */
   61         IBCS2_ENOTDIR,          /* 20 */
   62         IBCS2_EISDIR,           /* 21 */
   63         IBCS2_EINVAL,           /* 22 */
   64         IBCS2_ENFILE,           /* 23 */
   65         IBCS2_EMFILE,           /* 24 */
   66         IBCS2_ENOTTY,           /* 25 */
   67         IBCS2_ETXTBSY,          /* 26 */
   68         IBCS2_EFBIG,            /* 27 */
   69         IBCS2_ENOSPC,           /* 28 */
   70         IBCS2_ESPIPE,           /* 29 */
   71         IBCS2_EROFS,            /* 30 */
   72         IBCS2_EMLINK,           /* 31 */
   73         IBCS2_EPIPE,            /* 32 */
   74         IBCS2_EDOM,             /* 33 */
   75         IBCS2_ERANGE,           /* 34 */
   76         IBCS2_EAGAIN,           /* 35 */
   77         IBCS2_EINPROGRESS,      /* 36 */
   78         IBCS2_EALREADY,         /* 37 */
   79         IBCS2_ENOTSOCK,         /* 38 */
   80         IBCS2_EDESTADDRREQ,     /* 39 */
   81         IBCS2_EMSGSIZE,         /* 40 */
   82         IBCS2_EPROTOTYPE,       /* 41 */
   83         IBCS2_ENOPROTOOPT,      /* 42 */
   84         IBCS2_EPROTONOSUPPORT,  /* 43 */
   85         IBCS2_ESOCKTNOSUPPORT,  /* 44 */
   86         IBCS2_EOPNOTSUPP,       /* 45 */
   87         IBCS2_EPFNOSUPPORT,     /* 46 */
   88         IBCS2_EAFNOSUPPORT,     /* 47 */
   89         IBCS2_EADDRINUSE,       /* 48 */
   90         IBCS2_EADDRNOTAVAIL,    /* 49 */
   91         IBCS2_ENETDOWN,         /* 50 */
   92         IBCS2_ENETUNREACH,      /* 51 */
   93         IBCS2_ENETRESET,        /* 52 */
   94         IBCS2_ECONNABORTED,     /* 53 */
   95         IBCS2_ECONNRESET,       /* 54 */
   96         IBCS2_ENOBUFS,          /* 55 */
   97         IBCS2_EISCONN,          /* 56 */
   98         IBCS2_ENOTCONN,         /* 57 */
   99         IBCS2_ESHUTDOWN,        /* 58 */
  100         IBCS2_ETOOMANYREFS,     /* 59 */
  101         IBCS2_ETIMEDOUT,        /* 60 */
  102         IBCS2_ECONNREFUSED,     /* 61 */
  103         IBCS2_ELOOP,            /* 62 */
  104         IBCS2_ENAMETOOLONG,     /* 63 */
  105         IBCS2_EHOSTDOWN,        /* 64 */
  106         IBCS2_EHOSTUNREACH,     /* 65 */
  107         IBCS2_ENOTEMPTY,        /* 66 */
  108         0,                      /* 67 */
  109         0,                      /* 68 */
  110         0,                      /* 69 */
  111         IBCS2_ESTALE,           /* 70 */
  112         IBCS2_EREMOTE,          /* 71 */
  113         0,                      /* 72 */
  114         0,                      /* 73 */
  115         0,                      /* 74 */
  116         0,                      /* 75 */
  117         0,                      /* 76 */
  118         IBCS2_ENOLCK,           /* 77 */
  119         IBCS2_ENOSYS,           /* 78 */
  120         0,                      /* 79 */
  121         0,                      /* 80 */
  122         0,                      /* 81 */
  123         IBCS2_EIDRM,            /* 82 */
  124         IBCS2_ENOMSG,           /* 83 */
  125         IBCS2_EOVERFLOW,        /* 84 */
  126         0,                      /* 85 */
  127         IBCS2_EILSEQ,           /* 86 */
  128 };
  129 

Cache object: 4e9592ee94e09d95d6002807ae56416a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.