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