BSD 4_3_Reno release
[unix-history] / usr / src / lib / libc / gen / errlst.c
index 405d2c0..790ad74 100644 (file)
@@ -1,38 +1,51 @@
 /*
 /*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1982, 1985 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that: (1) source distributions retain this entire copyright
+ * notice and comment, and (2) distributions including binaries display
+ * the following acknowledgement:  ``This product includes software
+ * developed by the University of California, Berkeley and its contributors''
+ * in the documentation or other materials provided with the distribution
+ * and in all advertising materials mentioning features or use of this
+ * software. Neither the name of the University nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)errlst.c   5.2 (Berkeley) 3/9/86";
-#endif LIBC_SCCS and not lint
+static char sccsid[] = "@(#)errlst.c   5.6 (Berkeley) 6/1/90";
+#endif /* LIBC_SCCS and not lint */
 
 
-char   *sys_errlist[] = {
-       "Error 0",
-       "Not owner",                            /* 1 - EPERM */
-       "No such file or directory",            /* 2 - ENOENT */
-       "No such process",                      /* 3 - ESRCH */
-       "Interrupted system call",              /* 4 - EINTR */
-       "I/O error",                            /* 5 - EIO */
-       "No such device or address",            /* 6 - ENXIO */
-       "Arg list too long",                    /* 7 - E2BIG */
-       "Exec format error",                    /* 8 - ENOEXEC */
-       "Bad file number",                      /* 9 - EBADF */
-       "No children",                          /* 10 - ECHILD */
-       "No more processes",                    /* 11 - EAGAIN */
-       "Not enough memory",                    /* 12 - ENOMEM */
+char *sys_errlist[] = {
+       "Undefined error: 0",                   /*  0 - ENOERROR */
+       "Operation not permitted",              /*  1 - EPERM */
+       "No such file or directory",            /*  2 - ENOENT */
+       "No such process",                      /*  3 - ESRCH */
+       "Interrupted system call",              /*  4 - EINTR */
+       "Input/output error",                   /*  5 - EIO */
+       "Device not configured",                /*  6 - ENXIO */
+       "Argument list too long",               /*  7 - E2BIG */
+       "Exec format error",                    /*  8 - ENOEXEC */
+       "Bad file descriptor",                  /*  9 - EBADF */
+       "No child processes",                   /* 10 - ECHILD */
+       "Resource deadlock avoided",            /* 11 - EDEADLK */
+       "Cannot allocate memory",               /* 12 - ENOMEM */
        "Permission denied",                    /* 13 - EACCES */
        "Bad address",                          /* 14 - EFAULT */
        "Block device required",                /* 15 - ENOTBLK */
        "Device busy",                          /* 16 - EBUSY */
        "File exists",                          /* 17 - EEXIST */
        "Cross-device link",                    /* 18 - EXDEV */
        "Permission denied",                    /* 13 - EACCES */
        "Bad address",                          /* 14 - EFAULT */
        "Block device required",                /* 15 - ENOTBLK */
        "Device busy",                          /* 16 - EBUSY */
        "File exists",                          /* 17 - EEXIST */
        "Cross-device link",                    /* 18 - EXDEV */
-       "No such device",                       /* 19 - ENODEV */
+       "Operation not supported by device",    /* 19 - ENODEV */
        "Not a directory",                      /* 20 - ENOTDIR */
        "Is a directory",                       /* 21 - EISDIR */
        "Invalid argument",                     /* 22 - EINVAL */
        "Not a directory",                      /* 20 - ENOTDIR */
        "Is a directory",                       /* 21 - EISDIR */
        "Invalid argument",                     /* 22 - EINVAL */
-       "File table overflow",                  /* 23 - ENFILE */
+       "Too many open files in system",        /* 23 - ENFILE */
        "Too many open files",                  /* 24 - EMFILE */
        "Inappropriate ioctl for device",       /* 25 - ENOTTY */
        "Text file busy",                       /* 26 - ETXTBSY */
        "Too many open files",                  /* 24 - EMFILE */
        "Inappropriate ioctl for device",       /* 25 - ENOTTY */
        "Text file busy",                       /* 26 - ETXTBSY */
@@ -44,32 +57,31 @@ char        *sys_errlist[] = {
        "Broken pipe",                          /* 32 - EPIPE */
 
 /* math software */
        "Broken pipe",                          /* 32 - EPIPE */
 
 /* math software */
-       "Argument too large",                   /* 33 - EDOM */
-       "Result too large",                     /* 34 - ERANGE */
+       "Numerical argument out of domain",     /* 33 - EDOM */
+       "Numerical result out of range",        /* 34 - ERANGE */
 
 /* non-blocking and interrupt i/o */
 
 /* non-blocking and interrupt i/o */
-       "Operation would block",                /* 35 - EWOULDBLOCK */
+       "Resource temporarily unavailable",     /* 35 - EAGAIN */
+                                               /* 35 - EWOULDBLOCK */
        "Operation now in progress",            /* 36 - EINPROGRESS */
        "Operation already in progress",        /* 37 - EALREADY */
 
        "Operation now in progress",            /* 36 - EINPROGRESS */
        "Operation already in progress",        /* 37 - EALREADY */
 
-/* ipc/network software */
-
-       /* argument errors */
+/* ipc/network software -- argument errors */
        "Socket operation on non-socket",       /* 38 - ENOTSOCK */
        "Destination address required",         /* 39 - EDESTADDRREQ */
        "Message too long",                     /* 40 - EMSGSIZE */
        "Protocol wrong type for socket",       /* 41 - EPROTOTYPE */
        "Socket operation on non-socket",       /* 38 - ENOTSOCK */
        "Destination address required",         /* 39 - EDESTADDRREQ */
        "Message too long",                     /* 40 - EMSGSIZE */
        "Protocol wrong type for socket",       /* 41 - EPROTOTYPE */
-       "Option not supported by protocol",     /* 42 - ENOPROTOOPT */
+       "Protocol not available",               /* 42 - ENOPROTOOPT */
        "Protocol not supported",               /* 43 - EPROTONOSUPPORT */
        "Socket type not supported",            /* 44 - ESOCKTNOSUPPORT */
        "Operation not supported on socket",    /* 45 - EOPNOTSUPP */
        "Protocol family not supported",        /* 46 - EPFNOSUPPORT */
        "Protocol not supported",               /* 43 - EPROTONOSUPPORT */
        "Socket type not supported",            /* 44 - ESOCKTNOSUPPORT */
        "Operation not supported on socket",    /* 45 - EOPNOTSUPP */
        "Protocol family not supported",        /* 46 - EPFNOSUPPORT */
-       "Address family not supported by protocol family",
                                                /* 47 - EAFNOSUPPORT */
                                                /* 47 - EAFNOSUPPORT */
+       "Address family not supported by protocol family",
        "Address already in use",               /* 48 - EADDRINUSE */
        "Can't assign requested address",       /* 49 - EADDRNOTAVAIL */
 
        "Address already in use",               /* 48 - EADDRINUSE */
        "Can't assign requested address",       /* 49 - EADDRNOTAVAIL */
 
-       /* operational errors */
+/* ipc/network software -- operational errors */
        "Network is down",                      /* 50 - ENETDOWN */
        "Network is unreachable",               /* 51 - ENETUNREACH */
        "Network dropped connection on reset",  /* 52 - ENETRESET */
        "Network is down",                      /* 50 - ENETDOWN */
        "Network is unreachable",               /* 51 - ENETUNREACH */
        "Network dropped connection on reset",  /* 52 - ENETRESET */
@@ -81,14 +93,32 @@ char        *sys_errlist[] = {
        "Can't send after socket shutdown",     /* 58 - ESHUTDOWN */
        "Too many references: can't splice",    /* 59 - ETOOMANYREFS */
        "Connection timed out",                 /* 60 - ETIMEDOUT */
        "Can't send after socket shutdown",     /* 58 - ESHUTDOWN */
        "Too many references: can't splice",    /* 59 - ETOOMANYREFS */
        "Connection timed out",                 /* 60 - ETIMEDOUT */
-       "Connection refused",                   /* 61 - EREFUSED */
+       "Connection refused",                   /* 61 - ECONNREFUSED */
+
        "Too many levels of symbolic links",    /* 62 - ELOOP */
        "File name too long",                   /* 63 - ENAMETOOLONG */
        "Too many levels of symbolic links",    /* 62 - ELOOP */
        "File name too long",                   /* 63 - ENAMETOOLONG */
+
+/* should be rearranged */
        "Host is down",                         /* 64 - EHOSTDOWN */
        "Host is down",                         /* 64 - EHOSTDOWN */
-       "Host is unreachable",                  /* 65 - EHOSTUNREACH */
+       "No route to host",                     /* 65 - EHOSTUNREACH */
        "Directory not empty",                  /* 66 - ENOTEMPTY */
        "Directory not empty",                  /* 66 - ENOTEMPTY */
+
+/* quotas & mush */
        "Too many processes",                   /* 67 - EPROCLIM */
        "Too many users",                       /* 68 - EUSERS */
        "Disc quota exceeded",                  /* 69 - EDQUOT */
        "Too many processes",                   /* 67 - EPROCLIM */
        "Too many users",                       /* 68 - EUSERS */
        "Disc quota exceeded",                  /* 69 - EDQUOT */
+
+/* Network File System */
+       "Stale NFS file handle",                /* 70 - ESTALE */
+       "Too many levels of remote in path",    /* 71 - EREMOTE */
+       "RPC struct is bad",                    /* 72 - EBADRPC */
+       "RPC version wrong",                    /* 73 - ERPCMISMATCH */
+       "RPC prog. not avail",                  /* 74 - EPROGUNAVAIL */
+       "Program version wrong",                /* 75 - EPROGMISMATCH */
+       "Bad procedure for program",            /* 76 - EPROCUNAVAIL */
+
+       "No locks available",                   /* 77 - ENOLCK */
+       "Function not implemented",             /* 78 - ENOSYS */
 };
 };
-int    sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
+int errno;
+int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };