121340Sdist /* 235334Sbostic * Copyright (c) 1982, 1985 Regents of the University of California. 335334Sbostic * All rights reserved. 435334Sbostic * 542623Sbostic * %sccs.include.redist.c% 621340Sdist */ 721340Sdist 826548Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*45649Sbostic static char sccsid[] = "@(#)errlst.c 5.9 (Berkeley) 11/28/90"; 1035334Sbostic #endif /* LIBC_SCCS and not lint */ 1121340Sdist 1237385Sbostic char *sys_errlist[] = { 1339103Sbostic "Undefined error: 0", /* 0 - ENOERROR */ 1439103Sbostic "Operation not permitted", /* 1 - EPERM */ 1539103Sbostic "No such file or directory", /* 2 - ENOENT */ 1639103Sbostic "No such process", /* 3 - ESRCH */ 1739103Sbostic "Interrupted system call", /* 4 - EINTR */ 1839103Sbostic "Input/output error", /* 5 - EIO */ 1939103Sbostic "Device not configured", /* 6 - ENXIO */ 2039103Sbostic "Argument list too long", /* 7 - E2BIG */ 2139103Sbostic "Exec format error", /* 8 - ENOEXEC */ 2239103Sbostic "Bad file descriptor", /* 9 - EBADF */ 2339103Sbostic "No child processes", /* 10 - ECHILD */ 2439103Sbostic "Resource deadlock avoided", /* 11 - EDEADLK */ 2539103Sbostic "Cannot allocate memory", /* 12 - ENOMEM */ 265753Sroot "Permission denied", /* 13 - EACCES */ 275753Sroot "Bad address", /* 14 - EFAULT */ 285753Sroot "Block device required", /* 15 - ENOTBLK */ 2917460Skarels "Device busy", /* 16 - EBUSY */ 305753Sroot "File exists", /* 17 - EEXIST */ 315753Sroot "Cross-device link", /* 18 - EXDEV */ 3239103Sbostic "Operation not supported by device", /* 19 - ENODEV */ 335753Sroot "Not a directory", /* 20 - ENOTDIR */ 345753Sroot "Is a directory", /* 21 - EISDIR */ 355753Sroot "Invalid argument", /* 22 - EINVAL */ 3639103Sbostic "Too many open files in system", /* 23 - ENFILE */ 375753Sroot "Too many open files", /* 24 - EMFILE */ 3817460Skarels "Inappropriate ioctl for device", /* 25 - ENOTTY */ 395753Sroot "Text file busy", /* 26 - ETXTBSY */ 405753Sroot "File too large", /* 27 - EFBIG */ 415753Sroot "No space left on device", /* 28 - ENOSPC */ 425753Sroot "Illegal seek", /* 29 - ESPIPE */ 435753Sroot "Read-only file system", /* 30 - EROFS */ 445753Sroot "Too many links", /* 31 - EMLINK */ 455753Sroot "Broken pipe", /* 32 - EPIPE */ 465753Sroot 475753Sroot /* math software */ 4839103Sbostic "Numerical argument out of domain", /* 33 - EDOM */ 4939103Sbostic "Numerical result out of range", /* 34 - ERANGE */ 505753Sroot 515753Sroot /* non-blocking and interrupt i/o */ 5239103Sbostic "Resource temporarily unavailable", /* 35 - EAGAIN */ 5339103Sbostic /* 35 - EWOULDBLOCK */ 545753Sroot "Operation now in progress", /* 36 - EINPROGRESS */ 555753Sroot "Operation already in progress", /* 37 - EALREADY */ 565753Sroot 5739103Sbostic /* ipc/network software -- argument errors */ 585753Sroot "Socket operation on non-socket", /* 38 - ENOTSOCK */ 595753Sroot "Destination address required", /* 39 - EDESTADDRREQ */ 605753Sroot "Message too long", /* 40 - EMSGSIZE */ 615753Sroot "Protocol wrong type for socket", /* 41 - EPROTOTYPE */ 6239103Sbostic "Protocol not available", /* 42 - ENOPROTOOPT */ 635753Sroot "Protocol not supported", /* 43 - EPROTONOSUPPORT */ 645753Sroot "Socket type not supported", /* 44 - ESOCKTNOSUPPORT */ 6545406Smckusick "Operation not supported", /* 45 - EOPNOTSUPP */ 665753Sroot "Protocol family not supported", /* 46 - EPFNOSUPPORT */ 6739103Sbostic /* 47 - EAFNOSUPPORT */ 685753Sroot "Address family not supported by protocol family", 695753Sroot "Address already in use", /* 48 - EADDRINUSE */ 705753Sroot "Can't assign requested address", /* 49 - EADDRNOTAVAIL */ 715753Sroot 7239103Sbostic /* ipc/network software -- operational errors */ 735753Sroot "Network is down", /* 50 - ENETDOWN */ 745753Sroot "Network is unreachable", /* 51 - ENETUNREACH */ 755753Sroot "Network dropped connection on reset", /* 52 - ENETRESET */ 765753Sroot "Software caused connection abort", /* 53 - ECONNABORTED */ 775753Sroot "Connection reset by peer", /* 54 - ECONNRESET */ 785753Sroot "No buffer space available", /* 55 - ENOBUFS */ 795753Sroot "Socket is already connected", /* 56 - EISCONN */ 805753Sroot "Socket is not connected", /* 57 - ENOTCONN */ 815753Sroot "Can't send after socket shutdown", /* 58 - ESHUTDOWN */ 8239103Sbostic "Too many references: can't splice", /* 59 - ETOOMANYREFS */ 835753Sroot "Connection timed out", /* 60 - ETIMEDOUT */ 8435334Sbostic "Connection refused", /* 61 - ECONNREFUSED */ 8539103Sbostic 866420Sroot "Too many levels of symbolic links", /* 62 - ELOOP */ 876420Sroot "File name too long", /* 63 - ENAMETOOLONG */ 8839103Sbostic 8939103Sbostic /* should be rearranged */ 906606Ssam "Host is down", /* 64 - EHOSTDOWN */ 9139103Sbostic "No route to host", /* 65 - EHOSTUNREACH */ 929846Ssam "Directory not empty", /* 66 - ENOTEMPTY */ 9339103Sbostic 9439103Sbostic /* quotas & mush */ 959846Ssam "Too many processes", /* 67 - EPROCLIM */ 969846Ssam "Too many users", /* 68 - EUSERS */ 979846Ssam "Disc quota exceeded", /* 69 - EDQUOT */ 9839103Sbostic 9939103Sbostic /* Network File System */ 10039103Sbostic "Stale NFS file handle", /* 70 - ESTALE */ 10139103Sbostic "Too many levels of remote in path", /* 71 - EREMOTE */ 10239103Sbostic "RPC struct is bad", /* 72 - EBADRPC */ 10339103Sbostic "RPC version wrong", /* 73 - ERPCMISMATCH */ 10439103Sbostic "RPC prog. not avail", /* 74 - EPROGUNAVAIL */ 10539103Sbostic "Program version wrong", /* 75 - EPROGMISMATCH */ 10639103Sbostic "Bad procedure for program", /* 76 - EPROCUNAVAIL */ 10739103Sbostic 10839103Sbostic "No locks available", /* 77 - ENOLCK */ 10939103Sbostic "Function not implemented", /* 78 - ENOSYS */ 110*45649Sbostic "Inappropriate file type or format", /* 79 - EFTYPE */ 1111964Swnj }; 11239103Sbostic int errno; 11337385Sbostic int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] }; 114