Home | History | Annotate | Line # | Download | only in rump
      1 /*	$NetBSD: rumperr.h,v 1.8 2018/08/21 11:47:37 christos Exp $	*/
      2 
      3 /*
      4  *	AUTOMATICALLY GENERATED.  DO NOT EDIT.
      5  */
      6 
      7 /*	NetBSD: errno.h,v 1.40 2013/01/02 18:51:53 dsl Exp 	*/
      8 
      9 static __inline const char *
     10 rump_strerror(int error)
     11 {
     12 
     13 	switch (error) {
     14 	case 0:
     15 		 return "No error: zero, zip, zilch, none!";
     16 	case 1: /* (EPERM) */
     17 		return "Operation not permitted";
     18 	case 2: /* (ENOENT) */
     19 		return "No such file or directory";
     20 	case 3: /* (ESRCH) */
     21 		return "No such process";
     22 	case 4: /* (EINTR) */
     23 		return "Interrupted system call";
     24 	case 5: /* (EIO) */
     25 		return "Input/output error";
     26 	case 6: /* (ENXIO) */
     27 		return "Device not configured";
     28 	case 7: /* (E2BIG) */
     29 		return "Argument list too long";
     30 	case 8: /* (ENOEXEC) */
     31 		return "Exec format error";
     32 	case 9: /* (EBADF) */
     33 		return "Bad file descriptor";
     34 	case 10: /* (ECHILD) */
     35 		return "No child processes";
     36 	case 11: /* (EDEADLK) */
     37 		return "Resource deadlock avoided";
     38 	case 12: /* (ENOMEM) */
     39 		return "Cannot allocate memory";
     40 	case 13: /* (EACCES) */
     41 		return "Permission denied";
     42 	case 14: /* (EFAULT) */
     43 		return "Bad address";
     44 	case 15: /* (ENOTBLK) */
     45 		return "Block device required";
     46 	case 16: /* (EBUSY) */
     47 		return "Device busy";
     48 	case 17: /* (EEXIST) */
     49 		return "File exists";
     50 	case 18: /* (EXDEV) */
     51 		return "Cross-device link";
     52 	case 19: /* (ENODEV) */
     53 		return "Operation not supported by device";
     54 	case 20: /* (ENOTDIR) */
     55 		return "Not a directory";
     56 	case 21: /* (EISDIR) */
     57 		return "Is a directory";
     58 	case 22: /* (EINVAL) */
     59 		return "Invalid argument";
     60 	case 23: /* (ENFILE) */
     61 		return "Too many open files in system";
     62 	case 24: /* (EMFILE) */
     63 		return "Too many open files";
     64 	case 25: /* (ENOTTY) */
     65 		return "Inappropriate ioctl for device";
     66 	case 26: /* (ETXTBSY) */
     67 		return "Text file busy";
     68 	case 27: /* (EFBIG) */
     69 		return "File too large";
     70 	case 28: /* (ENOSPC) */
     71 		return "No space left on device";
     72 	case 29: /* (ESPIPE) */
     73 		return "Illegal seek";
     74 	case 30: /* (EROFS) */
     75 		return "Read-only file system";
     76 	case 31: /* (EMLINK) */
     77 		return "Too many links";
     78 	case 32: /* (EPIPE) */
     79 		return "Broken pipe";
     80 	case 33: /* (EDOM) */
     81 		return "Numerical argument out of domain";
     82 	case 34: /* (ERANGE) */
     83 		return "Result too large or too small";
     84 	case 35: /* (EAGAIN) */
     85 		return "Resource temporarily unavailable";
     86 	case 36: /* (EINPROGRESS) */
     87 		return "Operation now in progress";
     88 	case 37: /* (EALREADY) */
     89 		return "Operation already in progress";
     90 	case 38: /* (ENOTSOCK) */
     91 		return "Socket operation on non-socket";
     92 	case 39: /* (EDESTADDRREQ) */
     93 		return "Destination address required";
     94 	case 40: /* (EMSGSIZE) */
     95 		return "Message too long";
     96 	case 41: /* (EPROTOTYPE) */
     97 		return "Protocol wrong type for socket";
     98 	case 42: /* (ENOPROTOOPT) */
     99 		return "Protocol option not available";
    100 	case 43: /* (EPROTONOSUPPORT) */
    101 		return "Protocol not supported";
    102 	case 44: /* (ESOCKTNOSUPPORT) */
    103 		return "Socket type not supported";
    104 	case 45: /* (EOPNOTSUPP) */
    105 		return "Operation not supported";
    106 	case 46: /* (EPFNOSUPPORT) */
    107 		return "Protocol family not supported";
    108 	case 47: /* (EAFNOSUPPORT) */
    109 		return "Address family not supported by protocol family";
    110 	case 48: /* (EADDRINUSE) */
    111 		return "Address already in use";
    112 	case 49: /* (EADDRNOTAVAIL) */
    113 		return "Can't assign requested address";
    114 	case 50: /* (ENETDOWN) */
    115 		return "Network is down";
    116 	case 51: /* (ENETUNREACH) */
    117 		return "Network is unreachable";
    118 	case 52: /* (ENETRESET) */
    119 		return "Network dropped connection on reset";
    120 	case 53: /* (ECONNABORTED) */
    121 		return "Software caused connection abort";
    122 	case 54: /* (ECONNRESET) */
    123 		return "Connection reset by peer";
    124 	case 55: /* (ENOBUFS) */
    125 		return "No buffer space available";
    126 	case 56: /* (EISCONN) */
    127 		return "Socket is already connected";
    128 	case 57: /* (ENOTCONN) */
    129 		return "Socket is not connected";
    130 	case 58: /* (ESHUTDOWN) */
    131 		return "Can't send after socket shutdown";
    132 	case 59: /* (ETOOMANYREFS) */
    133 		return "Too many references: can't splice";
    134 	case 60: /* (ETIMEDOUT) */
    135 		return "Operation timed out";
    136 	case 61: /* (ECONNREFUSED) */
    137 		return "Connection refused";
    138 	case 62: /* (ELOOP) */
    139 		return "Too many levels of symbolic links";
    140 	case 63: /* (ENAMETOOLONG) */
    141 		return "File name too long";
    142 	case 64: /* (EHOSTDOWN) */
    143 		return "Host is down";
    144 	case 65: /* (EHOSTUNREACH) */
    145 		return "No route to host";
    146 	case 66: /* (ENOTEMPTY) */
    147 		return "Directory not empty";
    148 	case 67: /* (EPROCLIM) */
    149 		return "Too many processes";
    150 	case 68: /* (EUSERS) */
    151 		return "Too many users";
    152 	case 69: /* (EDQUOT) */
    153 		return "Disc quota exceeded";
    154 	case 70: /* (ESTALE) */
    155 		return "Stale NFS file handle";
    156 	case 71: /* (EREMOTE) */
    157 		return "Too many levels of remote in path";
    158 	case 72: /* (EBADRPC) */
    159 		return "RPC struct is bad";
    160 	case 73: /* (ERPCMISMATCH) */
    161 		return "RPC version wrong";
    162 	case 74: /* (EPROGUNAVAIL) */
    163 		return "RPC prog. not avail";
    164 	case 75: /* (EPROGMISMATCH) */
    165 		return "Program version wrong";
    166 	case 76: /* (EPROCUNAVAIL) */
    167 		return "Bad procedure for program";
    168 	case 77: /* (ENOLCK) */
    169 		return "No locks available";
    170 	case 78: /* (ENOSYS) */
    171 		return "Function not implemented";
    172 	case 79: /* (EFTYPE) */
    173 		return "Inappropriate file type or format";
    174 	case 80: /* (EAUTH) */
    175 		return "Authentication error";
    176 	case 81: /* (ENEEDAUTH) */
    177 		return "Need authenticator";
    178 	case 82: /* (EIDRM) */
    179 		return "Identifier removed";
    180 	case 83: /* (ENOMSG) */
    181 		return "No message of desired type";
    182 	case 84: /* (EOVERFLOW) */
    183 		return "Value too large to be stored in data type";
    184 	case 85: /* (EILSEQ) */
    185 		return "Illegal byte sequence";
    186 	case 86: /* (ENOTSUP) */
    187 		return "Not supported";
    188 	case 87: /* (ECANCELED) */
    189 		return "Operation canceled";
    190 	case 88: /* (EBADMSG) */
    191 		return "Bad or Corrupt message";
    192 	case 89: /* (ENODATA) */
    193 		return "No message available";
    194 	case 90: /* (ENOSR) */
    195 		return "No STREAM resources";
    196 	case 91: /* (ENOSTR) */
    197 		return "Not a STREAM";
    198 	case 92: /* (ETIME) */
    199 		return "STREAM ioctl timeout";
    200 	case 93: /* (ENOATTR) */
    201 		return "Attribute not found";
    202 	case 94: /* (EMULTIHOP) */
    203 		return "Multihop attempted";
    204 	case 95: /* (ENOLINK) */
    205 		return "Link has been severed";
    206 	case 96: /* (EPROTO) */
    207 		return "Protocol error";
    208 	default:
    209 		return "Invalid error!";
    210 	}
    211 }
    212