[BACK]Return to errlst.c CVS log [TXT][DIR] Up to [local] / prex-old / usr / lib / libc / errno

Annotation of prex-old/usr/lib/libc/errno/errlst.c, Revision 1.1.1.1

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

CVSweb