121340Sdist /* 235334Sbostic * Copyright (c) 1982, 1985 Regents of the University of California. 335334Sbostic * All rights reserved. 435334Sbostic * 535334Sbostic * Redistribution and use in source and binary forms are permitted 635334Sbostic * provided that the above copyright notice and this paragraph are 735334Sbostic * duplicated in all such forms and that any documentation, 835334Sbostic * advertising materials, and other materials related to such 935334Sbostic * distribution and use acknowledge that the software was developed 1035334Sbostic * by the University of California, Berkeley. The name of the 1135334Sbostic * University may not be used to endorse or promote products derived 1235334Sbostic * from this software without specific prior written permission. 1335334Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1435334Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1535334Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1621340Sdist */ 1721340Sdist 1826548Sdonn #if defined(LIBC_SCCS) && !defined(lint) 19*39103Sbostic static char sccsid[] = "@(#)errlst.c 5.5 (Berkeley) 09/08/89"; 2035334Sbostic #endif /* LIBC_SCCS and not lint */ 2121340Sdist 2237385Sbostic char *sys_errlist[] = { 23*39103Sbostic "Undefined error: 0", /* 0 - ENOERROR */ 24*39103Sbostic "Operation not permitted", /* 1 - EPERM */ 25*39103Sbostic "No such file or directory", /* 2 - ENOENT */ 26*39103Sbostic "No such process", /* 3 - ESRCH */ 27*39103Sbostic "Interrupted system call", /* 4 - EINTR */ 28*39103Sbostic "Input/output error", /* 5 - EIO */ 29*39103Sbostic "Device not configured", /* 6 - ENXIO */ 30*39103Sbostic "Argument list too long", /* 7 - E2BIG */ 31*39103Sbostic "Exec format error", /* 8 - ENOEXEC */ 32*39103Sbostic "Bad file descriptor", /* 9 - EBADF */ 33*39103Sbostic "No child processes", /* 10 - ECHILD */ 34*39103Sbostic "Resource deadlock avoided", /* 11 - EDEADLK */ 35*39103Sbostic "Cannot allocate memory", /* 12 - ENOMEM */ 365753Sroot "Permission denied", /* 13 - EACCES */ 375753Sroot "Bad address", /* 14 - EFAULT */ 385753Sroot "Block device required", /* 15 - ENOTBLK */ 3917460Skarels "Device busy", /* 16 - EBUSY */ 405753Sroot "File exists", /* 17 - EEXIST */ 415753Sroot "Cross-device link", /* 18 - EXDEV */ 42*39103Sbostic "Operation not supported by device", /* 19 - ENODEV */ 435753Sroot "Not a directory", /* 20 - ENOTDIR */ 445753Sroot "Is a directory", /* 21 - EISDIR */ 455753Sroot "Invalid argument", /* 22 - EINVAL */ 46*39103Sbostic "Too many open files in system", /* 23 - ENFILE */ 475753Sroot "Too many open files", /* 24 - EMFILE */ 4817460Skarels "Inappropriate ioctl for device", /* 25 - ENOTTY */ 495753Sroot "Text file busy", /* 26 - ETXTBSY */ 505753Sroot "File too large", /* 27 - EFBIG */ 515753Sroot "No space left on device", /* 28 - ENOSPC */ 525753Sroot "Illegal seek", /* 29 - ESPIPE */ 535753Sroot "Read-only file system", /* 30 - EROFS */ 545753Sroot "Too many links", /* 31 - EMLINK */ 555753Sroot "Broken pipe", /* 32 - EPIPE */ 565753Sroot 575753Sroot /* math software */ 58*39103Sbostic "Numerical argument out of domain", /* 33 - EDOM */ 59*39103Sbostic "Numerical result out of range", /* 34 - ERANGE */ 605753Sroot 615753Sroot /* non-blocking and interrupt i/o */ 62*39103Sbostic "Resource temporarily unavailable", /* 35 - EAGAIN */ 63*39103Sbostic /* 35 - EWOULDBLOCK */ 645753Sroot "Operation now in progress", /* 36 - EINPROGRESS */ 655753Sroot "Operation already in progress", /* 37 - EALREADY */ 665753Sroot 67*39103Sbostic /* ipc/network software -- argument errors */ 685753Sroot "Socket operation on non-socket", /* 38 - ENOTSOCK */ 695753Sroot "Destination address required", /* 39 - EDESTADDRREQ */ 705753Sroot "Message too long", /* 40 - EMSGSIZE */ 715753Sroot "Protocol wrong type for socket", /* 41 - EPROTOTYPE */ 72*39103Sbostic "Protocol not available", /* 42 - ENOPROTOOPT */ 735753Sroot "Protocol not supported", /* 43 - EPROTONOSUPPORT */ 745753Sroot "Socket type not supported", /* 44 - ESOCKTNOSUPPORT */ 755753Sroot "Operation not supported on socket", /* 45 - EOPNOTSUPP */ 765753Sroot "Protocol family not supported", /* 46 - EPFNOSUPPORT */ 77*39103Sbostic /* 47 - EAFNOSUPPORT */ 785753Sroot "Address family not supported by protocol family", 795753Sroot "Address already in use", /* 48 - EADDRINUSE */ 805753Sroot "Can't assign requested address", /* 49 - EADDRNOTAVAIL */ 815753Sroot 82*39103Sbostic /* ipc/network software -- operational errors */ 835753Sroot "Network is down", /* 50 - ENETDOWN */ 845753Sroot "Network is unreachable", /* 51 - ENETUNREACH */ 855753Sroot "Network dropped connection on reset", /* 52 - ENETRESET */ 865753Sroot "Software caused connection abort", /* 53 - ECONNABORTED */ 875753Sroot "Connection reset by peer", /* 54 - ECONNRESET */ 885753Sroot "No buffer space available", /* 55 - ENOBUFS */ 895753Sroot "Socket is already connected", /* 56 - EISCONN */ 905753Sroot "Socket is not connected", /* 57 - ENOTCONN */ 915753Sroot "Can't send after socket shutdown", /* 58 - ESHUTDOWN */ 92*39103Sbostic "Too many references: can't splice", /* 59 - ETOOMANYREFS */ 935753Sroot "Connection timed out", /* 60 - ETIMEDOUT */ 9435334Sbostic "Connection refused", /* 61 - ECONNREFUSED */ 95*39103Sbostic 966420Sroot "Too many levels of symbolic links", /* 62 - ELOOP */ 976420Sroot "File name too long", /* 63 - ENAMETOOLONG */ 98*39103Sbostic 99*39103Sbostic /* should be rearranged */ 1006606Ssam "Host is down", /* 64 - EHOSTDOWN */ 101*39103Sbostic "No route to host", /* 65 - EHOSTUNREACH */ 1029846Ssam "Directory not empty", /* 66 - ENOTEMPTY */ 103*39103Sbostic 104*39103Sbostic /* quotas & mush */ 1059846Ssam "Too many processes", /* 67 - EPROCLIM */ 1069846Ssam "Too many users", /* 68 - EUSERS */ 1079846Ssam "Disc quota exceeded", /* 69 - EDQUOT */ 108*39103Sbostic 109*39103Sbostic /* Network File System */ 110*39103Sbostic "Stale NFS file handle", /* 70 - ESTALE */ 111*39103Sbostic "Too many levels of remote in path", /* 71 - EREMOTE */ 112*39103Sbostic "RPC struct is bad", /* 72 - EBADRPC */ 113*39103Sbostic "RPC version wrong", /* 73 - ERPCMISMATCH */ 114*39103Sbostic "RPC prog. not avail", /* 74 - EPROGUNAVAIL */ 115*39103Sbostic "Program version wrong", /* 75 - EPROGMISMATCH */ 116*39103Sbostic "Bad procedure for program", /* 76 - EPROCUNAVAIL */ 117*39103Sbostic 118*39103Sbostic "No locks available", /* 77 - ENOLCK */ 119*39103Sbostic "Function not implemented", /* 78 - ENOSYS */ 1201964Swnj }; 121*39103Sbostic int errno; 12237385Sbostic int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] }; 123