📄 errno.java
字号:
public static void classDictInit(PyObject dict) throws PyIgnoreMethodTag { addcode(dict, EPERM, "EPERM", "Operation not permitted"); addcode(dict, ENOENT, "ENOENT", "No such file or directory"); addcode(dict, ESRCH, "ESRCH", "No such process"); addcode(dict, EINTR, "EINTR", "Interrupted system call"); addcode(dict, EIO, "EIO", "Input/output error"); addcode(dict, ENXIO, "ENXIO", "Device not configured"); addcode(dict, E2BIG, "E2BIG", "Argument list too long"); addcode(dict, ENOEXEC, "ENOEXEC", "Exec format error"); addcode(dict, EBADF, "EBADF", "Bad file descriptor"); addcode(dict, ECHILD, "ECHILD", "No child processes"); addcode(dict, EAGAIN, "EAGAIN", "Resource temporarily unavailable"); addcode(dict, EWOULDBLOCK, "EWOULDBLOCK", "Resource temporarily unavailable"); addcode(dict, ENOMEM, "ENOMEM", "Cannot allocate memory"); addcode(dict, EACCES, "EACCES", "Permission denied"); addcode(dict, EFAULT, "EFAULT", "Bad address"); addcode(dict, ENOTBLK, "ENOTBLK", "Block device required"); addcode(dict, EBUSY, "EBUSY", "Device or resource busy"); addcode(dict, EEXIST, "EEXIST", "File exists"); addcode(dict, EXDEV, "EXDEV", "Invalid cross-device link"); addcode(dict, ENODEV, "ENODEV", "No such device"); addcode(dict, ENOTDIR, "ENOTDIR", "Not a directory"); addcode(dict, EISDIR, "EISDIR", "Is a directory"); addcode(dict, EINVAL, "EINVAL", "Invalid argument"); addcode(dict, ENFILE, "ENFILE", "Too many open files in system"); addcode(dict, EMFILE, "EMFILE", "Too many open files"); addcode(dict, ENOTTY, "ENOTTY", "Inappropriate ioctl for device"); addcode(dict, ETXTBSY, "ETXTBSY", "Text file busy"); addcode(dict, EFBIG, "EFBIG", "File too large"); addcode(dict, ENOSPC, "ENOSPC", "No space left on device"); addcode(dict, ESPIPE, "ESPIPE", "Illegal seek"); addcode(dict, EROFS, "EROFS", "Read-only file system"); addcode(dict, EMLINK, "EMLINK", "Too many links"); addcode(dict, EPIPE, "EPIPE", "Broken pipe"); addcode(dict, EDOM, "EDOM", "Numerical argument out of domain"); addcode(dict, ERANGE, "ERANGE", "Numerical result out of range"); addcode(dict, EDEADLK, "EDEADLK", "Resource deadlock avoided"); addcode(dict, EDEADLOCK, "EDEADLOCK", "Resource deadlock avoided"); addcode(dict, ENAMETOOLONG, "ENAMETOOLONG", "File name too long"); addcode(dict, ENOLCK, "ENOLCK", "No locks available"); addcode(dict, ENOSYS, "ENOSYS", "Function not implemented"); addcode(dict, ENOTEMPTY, "ENOTEMPTY", "Directory not empty"); addcode(dict, ELOOP, "ELOOP", "Too many levels of symbolic links"); addcode(dict, ENOMSG, "ENOMSG", "No message of desired type"); addcode(dict, EIDRM, "EIDRM", "Identifier removed"); addcode(dict, ECHRNG, "ECHRNG", "Channel number out of range"); addcode(dict, EL2NSYNC, "EL2NSYNC", "Level 2 not synchronized"); addcode(dict, EL3HLT, "EL3HLT", "Level 3 halted"); addcode(dict, EL3RST, "EL3RST", "Level 3 reset"); addcode(dict, ELNRNG, "ELNRNG", "Link number out of range"); addcode(dict, EUNATCH, "EUNATCH", "Protocol driver not attached"); addcode(dict, ENOCSI, "ENOCSI", "No CSI structure available"); addcode(dict, EL2HLT, "EL2HLT", "Level 2 halted"); addcode(dict, EBADE, "EBADE", "Invalid exchange"); addcode(dict, EBADR, "EBADR", "Invalid request descriptor"); addcode(dict, EXFULL, "EXFULL", "Exchange full"); addcode(dict, ENOANO, "ENOANO", "No anode"); addcode(dict, EBADRQC, "EBADRQC", "Invalid request code"); addcode(dict, EBADSLT, "EBADSLT", "Invalid slot"); addcode(dict, EBFONT, "EBFONT", "Bad font file format"); addcode(dict, ENOSTR, "ENOSTR", "Device not a stream"); addcode(dict, ENODATA, "ENODATA", "No data available"); addcode(dict, ETIME, "ETIME", "Timer expired"); addcode(dict, ENOSR, "ENOSR", "Out of streams resources"); addcode(dict, ENONET, "ENONET", "Machine is not on the network"); addcode(dict, ENOPKG, "ENOPKG", "Package not installed"); addcode(dict, EREMOTE, "EREMOTE", "Object is remote"); addcode(dict, ENOLINK, "ENOLINK", "Link has been severed"); addcode(dict, EADV, "EADV", "Advertise error"); addcode(dict, ESRMNT, "ESRMNT", "Srmount error"); addcode(dict, ECOMM, "ECOMM", "Communication error on send"); addcode(dict, EPROTO, "EPROTO", "Protocol error"); addcode(dict, EMULTIHOP, "EMULTIHOP", "Multihop attempted"); addcode(dict, EDOTDOT, "EDOTDOT", "RFS specific error"); addcode(dict, EBADMSG, "EBADMSG", "Bad message"); addcode(dict, EOVERFLOW, "EOVERFLOW", "Value too large for defined data type"); addcode(dict, ENOTUNIQ, "ENOTUNIQ", "Name not unique on network"); addcode(dict, EBADFD, "EBADFD", "File descriptor in bad state"); addcode(dict, EREMCHG, "EREMCHG", "Remote address changed"); addcode(dict, ELIBACC, "ELIBACC", "Can not access a needed shared library"); addcode(dict, ELIBBAD, "ELIBBAD", "Accessing a corrupted shared library"); addcode(dict, ELIBSCN, "ELIBSCN", ".lib section in a.out corrupted"); addcode(dict, ELIBMAX, "ELIBMAX", "Attempting to link in too many shared libraries"); addcode(dict, ELIBEXEC, "ELIBEXEC", "Cannot exec a shared library directly"); addcode(dict, EILSEQ, "EILSEQ", "Invalid or incomplete multibyte or wide character"); addcode(dict, ERESTART, "ERESTART", "Interrupted system call should be restarted"); addcode(dict, ESTRPIPE, "ESTRPIPE", "Streams pipe error"); addcode(dict, EUSERS, "EUSERS", "Too many users"); addcode(dict, ENOTSOCK, "ENOTSOCK", "Socket operation on non-socket"); addcode(dict, EDESTADDRREQ, "EDESTADDRREQ", "Destination address required"); addcode(dict, EMSGSIZE, "EMSGSIZE", "Message too long"); addcode(dict, EPROTOTYPE, "EPROTOTYPE", "Protocol wrong type for socket"); addcode(dict, ENOPROTOOPT, "ENOPROTOOPT", "Protocol not available"); addcode(dict, EPROTONOSUPPORT, "EPROTONOSUPPORT", "Protocol not supported"); addcode(dict, ESOCKTNOSUPPORT, "ESOCKTNOSUPPORT", "Socket type not supported"); addcode(dict, EOPNOTSUPP, "EOPNOTSUPP", "Operation not supported"); addcode(dict, EPFNOSUPPORT, "EPFNOSUPPORT", "Protocol family not supported"); addcode(dict, EAFNOSUPPORT, "EAFNOSUPPORT", "Address family not supported by protocol"); addcode(dict, EADDRINUSE, "EADDRINUSE", "Address already in use"); addcode(dict, EADDRNOTAVAIL, "EADDRNOTAVAIL", "Cannot assign requested address"); addcode(dict, ENETDOWN, "ENETDOWN", "Network is down"); addcode(dict, ENETUNREACH, "ENETUNREACH", "Network is unreachable"); addcode(dict, ENETRESET, "ENETRESET", "Network dropped connection on reset"); addcode(dict, ECONNABORTED, "ECONNABORTED", "Software caused connection abort"); addcode(dict, ECONNRESET, "ECONNRESET", "Connection reset by peer"); addcode(dict, ENOBUFS, "ENOBUFS", "No buffer space available"); addcode(dict, EISCONN, "EISCONN", "Transport endpoint is already connected"); addcode(dict, ENOTCONN, "ENOTCONN", "Transport endpoint is not connected"); addcode(dict, ESHUTDOWN, "ESHUTDOWN", "Cannot send after transport endpoint shutdown"); addcode(dict, ETOOMANYREFS, "ETOOMANYREFS", "Too many references: cannot splice"); addcode(dict, ETIMEDOUT, "ETIMEDOUT", "Connection timed out"); addcode(dict, ECONNREFUSED, "ECONNREFUSED", "Connection refused"); addcode(dict, EHOSTDOWN, "EHOSTDOWN", "Host is down"); addcode(dict, EHOSTUNREACH, "EHOSTUNREACH", "No route to host"); addcode(dict, EALREADY, "EALREADY", "Operation already in progress"); addcode(dict, EINPROGRESS, "EINPROGRESS", "Operation now in progress"); addcode(dict, ESTALE, "ESTALE", "Stale NFS file handle"); addcode(dict, EUCLEAN, "EUCLEAN", "Structure needs cleaning"); addcode(dict, ENOTNAM, "ENOTNAM", "Not a XENIX named type file"); addcode(dict, ENAVAIL, "ENAVAIL", "No XENIX semaphores available"); addcode(dict, EISNAM, "EISNAM", "Is a named type file"); addcode(dict, EREMOTEIO, "EREMOTEIO", "Remote I/O error"); addcode(dict, EDQUOT, "EDQUOT", "Disk quota exceeded"); } public static PyObject strerror(PyObject error) { return strerror.__getitem__(error); } private static void addcode(PyObject dict, int errno, String err, String msg) { PyObject errno_o = Py.newInteger(errno); PyObject err_o = Py.newString(err); strerror.__setitem__(errno_o, Py.newString(msg)); errorcode.__setitem__(errno_o, err_o); dict.__setitem__(err_o, errno_o); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -