1 /* @(#)errlst.c 4.5 (Berkeley) 82/05/02 */ 2 char *sys_errlist[] = { 3 "Error 0", 4 "Not owner", /* 1 - EPERM */ 5 "No such file or directory", /* 2 - ENOENT */ 6 "No such process", /* 3 - ESRCH */ 7 "Interrupted system call", /* 4 - EINTR */ 8 "I/O error", /* 5 - EIO */ 9 "No such device or address", /* 6 - ENXIO */ 10 "Arg list too long", /* 7 - E2BIG */ 11 "Exec format error", /* 8 - ENOEXEC */ 12 "Bad file number", /* 9 - EBADF */ 13 "No children", /* 10 - ECHILD */ 14 "No more processes", /* 11 - EAGAIN */ 15 "Not enough core", /* 12 - ENOMEM */ 16 "Permission denied", /* 13 - EACCES */ 17 "Bad address", /* 14 - EFAULT */ 18 "Block device required", /* 15 - ENOTBLK */ 19 "Mount device busy", /* 16 - EBUSY */ 20 "File exists", /* 17 - EEXIST */ 21 "Cross-device link", /* 18 - EXDEV */ 22 "No such device", /* 19 - ENODEV */ 23 "Not a directory", /* 20 - ENOTDIR */ 24 "Is a directory", /* 21 - EISDIR */ 25 "Invalid argument", /* 22 - EINVAL */ 26 "File table overflow", /* 23 - ENFILE */ 27 "Too many open files", /* 24 - EMFILE */ 28 "Not a typewriter", /* 25 - ENOTTY */ 29 "Text file busy", /* 26 - ETXTBSY */ 30 "File too large", /* 27 - EFBIG */ 31 "No space left on device", /* 28 - ENOSPC */ 32 "Illegal seek", /* 29 - ESPIPE */ 33 "Read-only file system", /* 30 - EROFS */ 34 "Too many links", /* 31 - EMLINK */ 35 "Broken pipe", /* 32 - EPIPE */ 36 37 /* math software */ 38 "Argument too large", /* 33 - EDOM */ 39 "Result too large", /* 34 - ERANGE */ 40 41 /* non-blocking and interrupt i/o */ 42 "Operation would block", /* 35 - EWOULDBLOCK */ 43 "Operation now in progress", /* 36 - EINPROGRESS */ 44 "Operation already in progress", /* 37 - EALREADY */ 45 46 /* ipc/network software */ 47 48 /* argument errors */ 49 "Socket operation on non-socket", /* 38 - ENOTSOCK */ 50 "Destination address required", /* 39 - EDESTADDRREQ */ 51 "Message too long", /* 40 - EMSGSIZE */ 52 "Protocol wrong type for socket", /* 41 - EPROTOTYPE */ 53 "Protocol not available", /* 42 - ENOPROTOOPT */ 54 "Protocol not supported", /* 43 - EPROTONOSUPPORT */ 55 "Socket type not supported", /* 44 - ESOCKTNOSUPPORT */ 56 "Operation not supported on socket", /* 45 - EOPNOTSUPP */ 57 "Protocol family not supported", /* 46 - EPFNOSUPPORT */ 58 "Address family not supported by protocol family", 59 /* 47 - EAFNOSUPPORT */ 60 "Address already in use", /* 48 - EADDRINUSE */ 61 "Can't assign requested address", /* 49 - EADDRNOTAVAIL */ 62 63 /* operational errors */ 64 "Network is down", /* 50 - ENETDOWN */ 65 "Network is unreachable", /* 51 - ENETUNREACH */ 66 "Network dropped connection on reset", /* 52 - ENETRESET */ 67 "Software caused connection abort", /* 53 - ECONNABORTED */ 68 "Connection reset by peer", /* 54 - ECONNRESET */ 69 "No buffer space available", /* 55 - ENOBUFS */ 70 "Socket is already connected", /* 56 - EISCONN */ 71 "Socket is not connected", /* 57 - ENOTCONN */ 72 "Can't send after socket shutdown", /* 58 - ESHUTDOWN */ 73 "Too many references: can't splice", /* 59 - ETOOMANYREFS */ 74 "Connection timed out", /* 60 - ETIMEDOUT */ 75 "Connection refused", /* 61 - EREFUSED */ 76 "Too many levels of symbolic links", /* 62 - ELOOP */ 77 "File name too long", /* 63 - ENAMETOOLONG */ 78 "Host is down", /* 64 - EHOSTDOWN */ 79 "Host is unreachable", /* 65 - EHOSTUNREACH */ 80 }; 81 int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] }; 82