home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / general / errlst.c < prev    next >
C/C++ Source or Header  |  1996-12-11  |  6KB  |  144 lines

  1. #define _KERNEL
  2. #include "ixemul.h"
  3.  
  4. /*
  5.  * Copyright (c) 1982, 1985 Regents of the University of California.
  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 the University of
  19.  *    California, Berkeley and its contributors.
  20.  * 4. Neither the name of the University nor the names of its contributors
  21.  *    may be used to endorse or promote products derived from this software
  22.  *    without specific prior written permission.
  23.  *
  24.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  25.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  28.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  30.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  31.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  33.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  34.  * SUCH DAMAGE.
  35.  */
  36.  
  37. #if defined(LIBC_SCCS) && !defined(lint)
  38. static char sccsid[] = "@(#)errlst.c    5.10 (Berkeley) 2/19/91";
  39. #endif /* LIBC_SCCS and not lint */
  40.  
  41. char *sys_errlist[] = {
  42.     "Undefined error: 0",            /*  0 - ENOERROR */
  43.     "Operation not permitted",        /*  1 - EPERM */
  44.     "No such file or directory",        /*  2 - ENOENT */
  45.     "No such process",            /*  3 - ESRCH */
  46.     "Interrupted system call",        /*  4 - EINTR */
  47.     "Input/output error",            /*  5 - EIO */
  48.     "Device not configured",        /*  6 - ENXIO */
  49.     "Argument list too long",        /*  7 - E2BIG */
  50.     "Exec format error",            /*  8 - ENOEXEC */
  51.     "Bad file descriptor",            /*  9 - EBADF */
  52.     "No child processes",            /* 10 - ECHILD */
  53.     "Resource deadlock avoided",        /* 11 - EDEADLK */
  54.     "Cannot allocate memory",        /* 12 - ENOMEM */
  55.     "Permission denied",            /* 13 - EACCES */
  56.     "Bad address",                /* 14 - EFAULT */
  57.     "Block device required",        /* 15 - ENOTBLK */
  58.     "Device busy",                /* 16 - EBUSY */
  59.     "File exists",                /* 17 - EEXIST */
  60.     "Cross-device link",            /* 18 - EXDEV */
  61.     "Operation not supported by device",    /* 19 - ENODEV */
  62.     "Not a directory",            /* 20 - ENOTDIR */
  63.     "Is a directory",            /* 21 - EISDIR */
  64.     "Invalid argument",            /* 22 - EINVAL */
  65.     "Too many open files in system",    /* 23 - ENFILE */
  66.     "Too many open files",            /* 24 - EMFILE */
  67.     "Inappropriate ioctl for device",    /* 25 - ENOTTY */
  68.     "Text file busy",            /* 26 - ETXTBSY */
  69.     "File too large",            /* 27 - EFBIG */
  70.     "No space left on device",        /* 28 - ENOSPC */
  71.     "Illegal seek",                /* 29 - ESPIPE */
  72.     "Read-only file system",        /* 30 - EROFS */
  73.     "Too many links",            /* 31 - EMLINK */
  74.     "Broken pipe",                /* 32 - EPIPE */
  75.  
  76. /* math software */
  77.     "Numerical argument out of domain",    /* 33 - EDOM */
  78.     "Result too large",            /* 34 - ERANGE */
  79.  
  80. /* non-blocking and interrupt i/o */
  81.     "Resource temporarily unavailable",    /* 35 - EAGAIN */
  82.                         /* 35 - EWOULDBLOCK */
  83.     "Operation now in progress",        /* 36 - EINPROGRESS */
  84.     "Operation already in progress",    /* 37 - EALREADY */
  85.  
  86. /* ipc/network software -- argument errors */
  87.     "Socket operation on non-socket",    /* 38 - ENOTSOCK */
  88.     "Destination address required",        /* 39 - EDESTADDRREQ */
  89.     "Message too long",            /* 40 - EMSGSIZE */
  90.     "Protocol wrong type for socket",    /* 41 - EPROTOTYPE */
  91.     "Protocol not available",        /* 42 - ENOPROTOOPT */
  92.     "Protocol not supported",        /* 43 - EPROTONOSUPPORT */
  93.     "Socket type not supported",        /* 44 - ESOCKTNOSUPPORT */
  94.     "Operation not supported",        /* 45 - EOPNOTSUPP */
  95.     "Protocol family not supported",    /* 46 - EPFNOSUPPORT */
  96.                         /* 47 - EAFNOSUPPORT */
  97.     "Address family not supported by protocol family",
  98.     "Address already in use",        /* 48 - EADDRINUSE */
  99.     "Can't assign requested address",    /* 49 - EADDRNOTAVAIL */
  100.  
  101. /* ipc/network software -- operational errors */
  102.     "Network is down",            /* 50 - ENETDOWN */
  103.     "Network is unreachable",        /* 51 - ENETUNREACH */
  104.     "Network dropped connection on reset",    /* 52 - ENETRESET */
  105.     "Software caused connection abort",    /* 53 - ECONNABORTED */
  106.     "Connection reset by peer",        /* 54 - ECONNRESET */
  107.     "No buffer space available",        /* 55 - ENOBUFS */
  108.     "Socket is already connected",        /* 56 - EISCONN */
  109.     "Socket is not connected",        /* 57 - ENOTCONN */
  110.     "Can't send after socket shutdown",    /* 58 - ESHUTDOWN */
  111.     "Too many references: can't splice",    /* 59 - ETOOMANYREFS */
  112.     "Connection timed out",            /* 60 - ETIMEDOUT */
  113.     "Connection refused",            /* 61 - ECONNREFUSED */
  114.  
  115.     "Too many levels of symbolic links",    /* 62 - ELOOP */
  116.     "File name too long",            /* 63 - ENAMETOOLONG */
  117.  
  118. /* should be rearranged */
  119.     "Host is down",                /* 64 - EHOSTDOWN */
  120.     "No route to host",            /* 65 - EHOSTUNREACH */
  121.     "Directory not empty",            /* 66 - ENOTEMPTY */
  122.  
  123. /* quotas & mush */
  124.     "Too many processes",            /* 67 - EPROCLIM */
  125.     "Too many users",            /* 68 - EUSERS */
  126.     "Disc quota exceeded",            /* 69 - EDQUOT */
  127.  
  128. /* Network File System */
  129.     "Stale NFS file handle",        /* 70 - ESTALE */
  130.     "Too many levels of remote in path",    /* 71 - EREMOTE */
  131.     "RPC struct is bad",            /* 72 - EBADRPC */
  132.     "RPC version wrong",            /* 73 - ERPCMISMATCH */
  133.     "RPC prog. not avail",            /* 74 - EPROGUNAVAIL */
  134.     "Program version wrong",        /* 75 - EPROGMISMATCH */
  135.     "Bad procedure for program",        /* 76 - EPROCUNAVAIL */
  136.  
  137.     "No locks available",            /* 77 - ENOLCK */
  138.     "Function not implemented",        /* 78 - ENOSYS */
  139.     "Inappropriate file type or format",    /* 79 - EFTYPE */
  140. };
  141. #ifndef STATIC_LIBRARY
  142. int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
  143. #endif
  144.