Annotation of 43BSDReno/lib/libc/gen/errlst.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1982, 1985 Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  */
                     19: 
                     20: #if defined(LIBC_SCCS) && !defined(lint)
                     21: static char sccsid[] = "@(#)errlst.c   5.6 (Berkeley) 6/1/90";
                     22: #endif /* LIBC_SCCS and not lint */
                     23: 
                     24: char *sys_errlist[] = {
                     25:        "Undefined error: 0",                   /*  0 - ENOERROR */
                     26:        "Operation not permitted",              /*  1 - EPERM */
                     27:        "No such file or directory",            /*  2 - ENOENT */
                     28:        "No such process",                      /*  3 - ESRCH */
                     29:        "Interrupted system call",              /*  4 - EINTR */
                     30:        "Input/output error",                   /*  5 - EIO */
                     31:        "Device not configured",                /*  6 - ENXIO */
                     32:        "Argument list too long",               /*  7 - E2BIG */
                     33:        "Exec format error",                    /*  8 - ENOEXEC */
                     34:        "Bad file descriptor",                  /*  9 - EBADF */
                     35:        "No child processes",                   /* 10 - ECHILD */
                     36:        "Resource deadlock avoided",            /* 11 - EDEADLK */
                     37:        "Cannot allocate memory",               /* 12 - ENOMEM */
                     38:        "Permission denied",                    /* 13 - EACCES */
                     39:        "Bad address",                          /* 14 - EFAULT */
                     40:        "Block device required",                /* 15 - ENOTBLK */
                     41:        "Device busy",                          /* 16 - EBUSY */
                     42:        "File exists",                          /* 17 - EEXIST */
                     43:        "Cross-device link",                    /* 18 - EXDEV */
                     44:        "Operation not supported by device",    /* 19 - ENODEV */
                     45:        "Not a directory",                      /* 20 - ENOTDIR */
                     46:        "Is a directory",                       /* 21 - EISDIR */
                     47:        "Invalid argument",                     /* 22 - EINVAL */
                     48:        "Too many open files in system",        /* 23 - ENFILE */
                     49:        "Too many open files",                  /* 24 - EMFILE */
                     50:        "Inappropriate ioctl for device",       /* 25 - ENOTTY */
                     51:        "Text file busy",                       /* 26 - ETXTBSY */
                     52:        "File too large",                       /* 27 - EFBIG */
                     53:        "No space left on device",              /* 28 - ENOSPC */
                     54:        "Illegal seek",                         /* 29 - ESPIPE */
                     55:        "Read-only file system",                /* 30 - EROFS */
                     56:        "Too many links",                       /* 31 - EMLINK */
                     57:        "Broken pipe",                          /* 32 - EPIPE */
                     58: 
                     59: /* math software */
                     60:        "Numerical argument out of domain",     /* 33 - EDOM */
                     61:        "Numerical result out of range",        /* 34 - ERANGE */
                     62: 
                     63: /* non-blocking and interrupt i/o */
                     64:        "Resource temporarily unavailable",     /* 35 - EAGAIN */
                     65:                                                /* 35 - EWOULDBLOCK */
                     66:        "Operation now in progress",            /* 36 - EINPROGRESS */
                     67:        "Operation already in progress",        /* 37 - EALREADY */
                     68: 
                     69: /* ipc/network software -- argument errors */
                     70:        "Socket operation on non-socket",       /* 38 - ENOTSOCK */
                     71:        "Destination address required",         /* 39 - EDESTADDRREQ */
                     72:        "Message too long",                     /* 40 - EMSGSIZE */
                     73:        "Protocol wrong type for socket",       /* 41 - EPROTOTYPE */
                     74:        "Protocol not available",               /* 42 - ENOPROTOOPT */
                     75:        "Protocol not supported",               /* 43 - EPROTONOSUPPORT */
                     76:        "Socket type not supported",            /* 44 - ESOCKTNOSUPPORT */
                     77:        "Operation not supported on socket",    /* 45 - EOPNOTSUPP */
                     78:        "Protocol family not supported",        /* 46 - EPFNOSUPPORT */
                     79:                                                /* 47 - EAFNOSUPPORT */
                     80:        "Address family not supported by protocol family",
                     81:        "Address already in use",               /* 48 - EADDRINUSE */
                     82:        "Can't assign requested address",       /* 49 - EADDRNOTAVAIL */
                     83: 
                     84: /* ipc/network software -- operational errors */
                     85:        "Network is down",                      /* 50 - ENETDOWN */
                     86:        "Network is unreachable",               /* 51 - ENETUNREACH */
                     87:        "Network dropped connection on reset",  /* 52 - ENETRESET */
                     88:        "Software caused connection abort",     /* 53 - ECONNABORTED */
                     89:        "Connection reset by peer",             /* 54 - ECONNRESET */
                     90:        "No buffer space available",            /* 55 - ENOBUFS */
                     91:        "Socket is already connected",          /* 56 - EISCONN */
                     92:        "Socket is not connected",              /* 57 - ENOTCONN */
                     93:        "Can't send after socket shutdown",     /* 58 - ESHUTDOWN */
                     94:        "Too many references: can't splice",    /* 59 - ETOOMANYREFS */
                     95:        "Connection timed out",                 /* 60 - ETIMEDOUT */
                     96:        "Connection refused",                   /* 61 - ECONNREFUSED */
                     97: 
                     98:        "Too many levels of symbolic links",    /* 62 - ELOOP */
                     99:        "File name too long",                   /* 63 - ENAMETOOLONG */
                    100: 
                    101: /* should be rearranged */
                    102:        "Host is down",                         /* 64 - EHOSTDOWN */
                    103:        "No route to host",                     /* 65 - EHOSTUNREACH */
                    104:        "Directory not empty",                  /* 66 - ENOTEMPTY */
                    105: 
                    106: /* quotas & mush */
                    107:        "Too many processes",                   /* 67 - EPROCLIM */
                    108:        "Too many users",                       /* 68 - EUSERS */
                    109:        "Disc quota exceeded",                  /* 69 - EDQUOT */
                    110: 
                    111: /* Network File System */
                    112:        "Stale NFS file handle",                /* 70 - ESTALE */
                    113:        "Too many levels of remote in path",    /* 71 - EREMOTE */
                    114:        "RPC struct is bad",                    /* 72 - EBADRPC */
                    115:        "RPC version wrong",                    /* 73 - ERPCMISMATCH */
                    116:        "RPC prog. not avail",                  /* 74 - EPROGUNAVAIL */
                    117:        "Program version wrong",                /* 75 - EPROGMISMATCH */
                    118:        "Bad procedure for program",            /* 76 - EPROCUNAVAIL */
                    119: 
                    120:        "No locks available",                   /* 77 - ENOLCK */
                    121:        "Function not implemented",             /* 78 - ENOSYS */
                    122: };
                    123: int errno;
                    124: int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.