1*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 2*7c478bd9Sstevel@tonic-gate /* from UCB 5.1 85/05/30 */ 3*7c478bd9Sstevel@tonic-gate 4*7c478bd9Sstevel@tonic-gate /* 5*7c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 6*7c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 7*7c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 8*7c478bd9Sstevel@tonic-gate */ 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gate char *sys_errlist[] = { 11*7c478bd9Sstevel@tonic-gate "Error 0", 12*7c478bd9Sstevel@tonic-gate "Not owner", /* 1 - EPERM */ 13*7c478bd9Sstevel@tonic-gate "No such file or directory", /* 2 - ENOENT */ 14*7c478bd9Sstevel@tonic-gate "No such process", /* 3 - ESRCH */ 15*7c478bd9Sstevel@tonic-gate "Interrupted system call", /* 4 - EINTR */ 16*7c478bd9Sstevel@tonic-gate "I/O error", /* 5 - EIO */ 17*7c478bd9Sstevel@tonic-gate "No such device or address", /* 6 - ENXIO */ 18*7c478bd9Sstevel@tonic-gate "Arg list too long", /* 7 - E2BIG */ 19*7c478bd9Sstevel@tonic-gate "Exec format error", /* 8 - ENOEXEC */ 20*7c478bd9Sstevel@tonic-gate "Bad file number", /* 9 - EBADF */ 21*7c478bd9Sstevel@tonic-gate "No children", /* 10 - ECHILD */ 22*7c478bd9Sstevel@tonic-gate "No more processes", /* 11 - EAGAIN */ 23*7c478bd9Sstevel@tonic-gate "Not enough memory", /* 12 - ENOMEM */ 24*7c478bd9Sstevel@tonic-gate "Permission denied", /* 13 - EACCES */ 25*7c478bd9Sstevel@tonic-gate "Bad address", /* 14 - EFAULT */ 26*7c478bd9Sstevel@tonic-gate "Block device required", /* 15 - ENOTBLK */ 27*7c478bd9Sstevel@tonic-gate "Device busy", /* 16 - EBUSY */ 28*7c478bd9Sstevel@tonic-gate "File exists", /* 17 - EEXIST */ 29*7c478bd9Sstevel@tonic-gate "Cross-device link", /* 18 - EXDEV */ 30*7c478bd9Sstevel@tonic-gate "No such device", /* 19 - ENODEV */ 31*7c478bd9Sstevel@tonic-gate "Not a directory", /* 20 - ENOTDIR */ 32*7c478bd9Sstevel@tonic-gate "Is a directory", /* 21 - EISDIR */ 33*7c478bd9Sstevel@tonic-gate "Invalid argument", /* 22 - EINVAL */ 34*7c478bd9Sstevel@tonic-gate "File table overflow", /* 23 - ENFILE */ 35*7c478bd9Sstevel@tonic-gate "Too many open files", /* 24 - EMFILE */ 36*7c478bd9Sstevel@tonic-gate "Inappropriate ioctl for device", /* 25 - ENOTTY */ 37*7c478bd9Sstevel@tonic-gate "Text file busy", /* 26 - ETXTBSY */ 38*7c478bd9Sstevel@tonic-gate "File too large", /* 27 - EFBIG */ 39*7c478bd9Sstevel@tonic-gate "No space left on device", /* 28 - ENOSPC */ 40*7c478bd9Sstevel@tonic-gate "Illegal seek", /* 29 - ESPIPE */ 41*7c478bd9Sstevel@tonic-gate "Read-only file system", /* 30 - EROFS */ 42*7c478bd9Sstevel@tonic-gate "Too many links", /* 31 - EMLINK */ 43*7c478bd9Sstevel@tonic-gate "Broken pipe", /* 32 - EPIPE */ 44*7c478bd9Sstevel@tonic-gate 45*7c478bd9Sstevel@tonic-gate /* math software */ 46*7c478bd9Sstevel@tonic-gate "Argument too large", /* 33 - EDOM */ 47*7c478bd9Sstevel@tonic-gate "Result too large", /* 34 - ERANGE */ 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate /* non-blocking and interrupt i/o */ 50*7c478bd9Sstevel@tonic-gate "Operation would block", /* 35 - EWOULDBLOCK */ 51*7c478bd9Sstevel@tonic-gate "Operation now in progress", /* 36 - EINPROGRESS */ 52*7c478bd9Sstevel@tonic-gate "Operation already in progress", /* 37 - EALREADY */ 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate /* ipc/network software */ 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gate /* argument errors */ 57*7c478bd9Sstevel@tonic-gate "Socket operation on non-socket", /* 38 - ENOTSOCK */ 58*7c478bd9Sstevel@tonic-gate "Destination address required", /* 39 - EDESTADDRREQ */ 59*7c478bd9Sstevel@tonic-gate "Message too long", /* 40 - EMSGSIZE */ 60*7c478bd9Sstevel@tonic-gate "Protocol wrong type for socket", /* 41 - EPROTOTYPE */ 61*7c478bd9Sstevel@tonic-gate "Option not supported by protocol", /* 42 - ENOPROTOOPT */ 62*7c478bd9Sstevel@tonic-gate "Protocol not supported", /* 43 - EPROTONOSUPPORT */ 63*7c478bd9Sstevel@tonic-gate "Socket type not supported", /* 44 - ESOCKTNOSUPPORT */ 64*7c478bd9Sstevel@tonic-gate "Operation not supported on socket", /* 45 - EOPNOTSUPP */ 65*7c478bd9Sstevel@tonic-gate "Protocol family not supported", /* 46 - EPFNOSUPPORT */ 66*7c478bd9Sstevel@tonic-gate "Address family not supported by protocol family", 67*7c478bd9Sstevel@tonic-gate /* 47 - EAFNOSUPPORT */ 68*7c478bd9Sstevel@tonic-gate "Address already in use", /* 48 - EADDRINUSE */ 69*7c478bd9Sstevel@tonic-gate "Can't assign requested address", /* 49 - EADDRNOTAVAIL */ 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate /* operational errors */ 72*7c478bd9Sstevel@tonic-gate "Network is down", /* 50 - ENETDOWN */ 73*7c478bd9Sstevel@tonic-gate "Network is unreachable", /* 51 - ENETUNREACH */ 74*7c478bd9Sstevel@tonic-gate "Network dropped connection on reset", /* 52 - ENETRESET */ 75*7c478bd9Sstevel@tonic-gate "Software caused connection abort", /* 53 - ECONNABORTED */ 76*7c478bd9Sstevel@tonic-gate "Connection reset by peer", /* 54 - ECONNRESET */ 77*7c478bd9Sstevel@tonic-gate "No buffer space available", /* 55 - ENOBUFS */ 78*7c478bd9Sstevel@tonic-gate "Socket is already connected", /* 56 - EISCONN */ 79*7c478bd9Sstevel@tonic-gate "Socket is not connected", /* 57 - ENOTCONN */ 80*7c478bd9Sstevel@tonic-gate "Can't send after socket shutdown", /* 58 - ESHUTDOWN */ 81*7c478bd9Sstevel@tonic-gate "Too many references: can't splice", /* 59 - ETOOMANYREFS */ 82*7c478bd9Sstevel@tonic-gate "Connection timed out", /* 60 - ETIMEDOUT */ 83*7c478bd9Sstevel@tonic-gate "Connection refused", /* 61 - EREFUSED */ 84*7c478bd9Sstevel@tonic-gate "Too many levels of symbolic links", /* 62 - ELOOP */ 85*7c478bd9Sstevel@tonic-gate "File name too long", /* 63 - ENAMETOOLONG */ 86*7c478bd9Sstevel@tonic-gate "Host is down", /* 64 - EHOSTDOWN */ 87*7c478bd9Sstevel@tonic-gate "Host is unreachable", /* 65 - EHOSTUNREACH */ 88*7c478bd9Sstevel@tonic-gate "Directory not empty", /* 66 - ENOTEMPTY */ 89*7c478bd9Sstevel@tonic-gate "Too many processes", /* 67 - EPROCLIM */ 90*7c478bd9Sstevel@tonic-gate "Too many users", /* 68 - EUSERS */ 91*7c478bd9Sstevel@tonic-gate "Disc quota exceeded", /* 69 - EDQUOT */ 92*7c478bd9Sstevel@tonic-gate "Stale NFS file handle", /* 70 - ESTALE */ 93*7c478bd9Sstevel@tonic-gate "Too many levels of remote in path", /* 71 - EREMOTE */ 94*7c478bd9Sstevel@tonic-gate "Not a stream device", /* 72 - ENOSTR */ 95*7c478bd9Sstevel@tonic-gate "Timer expired", /* 73 - ETIME */ 96*7c478bd9Sstevel@tonic-gate "Out of stream resources", /* 74 - ENOSR */ 97*7c478bd9Sstevel@tonic-gate "No message of desired type", /* 75 - ENOMSG */ 98*7c478bd9Sstevel@tonic-gate "Not a data message", /* 76 - EBADMSG */ 99*7c478bd9Sstevel@tonic-gate "Identifier removed", /* 77 - EIDRM */ 100*7c478bd9Sstevel@tonic-gate "Deadlock situation detected/avoided", /* 78 - EDEADLK */ 101*7c478bd9Sstevel@tonic-gate "No record locks available", /* 79 - ENOLCK */ 102*7c478bd9Sstevel@tonic-gate "Machine is not on the network", /* 80 - ENONET */ 103*7c478bd9Sstevel@tonic-gate "Object is remote", /* 81 - ERREMOTE */ 104*7c478bd9Sstevel@tonic-gate "Link has been severed", /* 82 - ENOLINK */ 105*7c478bd9Sstevel@tonic-gate "Advertise error ", /* 83 - EADV */ 106*7c478bd9Sstevel@tonic-gate "Srmount error ", /* 84 - ESRMNT */ 107*7c478bd9Sstevel@tonic-gate "Communication error on send", /* 85 - ECOMM */ 108*7c478bd9Sstevel@tonic-gate "Protocol error", /* 86 - EPROTO */ 109*7c478bd9Sstevel@tonic-gate "Multihop attempted", /* 87 - EMULTIHOP */ 110*7c478bd9Sstevel@tonic-gate "EDOTDOT!!!!", /* 88 - EDOTDOT -can't happen */ 111*7c478bd9Sstevel@tonic-gate "Remote address changed", /* 89 - EREMCHG */ 112*7c478bd9Sstevel@tonic-gate "Function not implemented", /* 90 - ENOSYS */ 113*7c478bd9Sstevel@tonic-gate }; 114*7c478bd9Sstevel@tonic-gate int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] }; 115