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