/*thisstructdefinesthewaytheregistersarestoredonthestackduringasystemcall.*/structtarget_pt_regs{/* Saved main processor registers. */target_ulongregs[32];/* Saved special registers. */target_ulongcp0_status;target_ulonglo;target_ulonghi;target_ulongcp0_badvaddr;target_ulongcp0_cause;target_ulongcp0_epc;};/* Target errno definitions taken from asm-mips/errno.h */#undefTARGET_ENOMSG#defineTARGET_ENOMSG35/* Identifier removed */#undefTARGET_EIDRM#defineTARGET_EIDRM36/* Identifier removed */#undefTARGET_ECHRNG#defineTARGET_ECHRNG37/* Channel number out of range */#undefTARGET_EL2NSYNC#defineTARGET_EL2NSYNC38/* Level 2 not synchronized */#undefTARGET_EL3HLT#defineTARGET_EL3HLT39/* Level 3 halted */#undefTARGET_EL3RST#defineTARGET_EL3RST40/* Level 3 reset */#undefTARGET_ELNRNG#defineTARGET_ELNRNG41/* Link number out of range */#undefTARGET_EUNATCH#defineTARGET_EUNATCH42/* Protocol driver not attached */#undefTARGET_ENOCSI#defineTARGET_ENOCSI43/* No CSI structure available */#undefTARGET_EL2HLT#defineTARGET_EL2HLT44/* Level 2 halted */#undefTARGET_EDEADLK#defineTARGET_EDEADLK45/* Resource deadlock would occur */#undefTARGET_ENOLCK#defineTARGET_ENOLCK46/* No record locks available */#undefTARGET_EBADE#defineTARGET_EBADE50/* Invalid exchange */#undefTARGET_EBADR#defineTARGET_EBADR51/* Invalid request descriptor */#undefTARGET_EXFULL#defineTARGET_EXFULL52/* TARGET_Exchange full */#undefTARGET_ENOANO#defineTARGET_ENOANO53/* No anode */#undefTARGET_EBADRQC#defineTARGET_EBADRQC54/* Invalid request code */#undefTARGET_EBADSLT#defineTARGET_EBADSLT55/* Invalid slot */#undefTARGET_EDEADLOCK#defineTARGET_EDEADLOCK56/* File locking deadlock error */#undefTARGET_EBFONT#defineTARGET_EBFONT59/* Bad font file format */#undefTARGET_ENOSTR#defineTARGET_ENOSTR60/* Device not a stream */#undefTARGET_ENODATA#defineTARGET_ENODATA61/* No data available */#undefTARGET_ETIME#defineTARGET_ETIME62/* Timer expired */#undefTARGET_ENOSR#defineTARGET_ENOSR63/* Out of streams resources */#undefTARGET_ENONET#defineTARGET_ENONET64/* Machine is not on the network */#undefTARGET_ENOPKG#defineTARGET_ENOPKG65/* Package not installed */#undefTARGET_EREMOTE#defineTARGET_EREMOTE66/* Object is remote */#undefTARGET_ENOLINK#defineTARGET_ENOLINK67/* Link has been severed */#undefTARGET_EADV#defineTARGET_EADV68/* Advertise error */#undefTARGET_ESRMNT#defineTARGET_ESRMNT69/* Srmount error */#undefTARGET_ECOMM#defineTARGET_ECOMM70/* Communication error on send */#undefTARGET_EPROTO#defineTARGET_EPROTO71/* Protocol error */#undefTARGET_EDOTDOT#defineTARGET_EDOTDOT73/* RFS specific error */#undefTARGET_EMULTIHOP#defineTARGET_EMULTIHOP74/* Multihop attempted */#undefTARGET_EBADMSG#defineTARGET_EBADMSG77/* Not a data message */#undefTARGET_ENAMETOOLONG#defineTARGET_ENAMETOOLONG78/* File name too long */#undefTARGET_EOVERFLOW#defineTARGET_EOVERFLOW79/* Value too large for defined data type */#undefTARGET_ENOTUNIQ#defineTARGET_ENOTUNIQ80/* Name not unique on network */#undefTARGET_EBADFD#defineTARGET_EBADFD81/* File descriptor in bad state */#undefTARGET_EREMCHG#defineTARGET_EREMCHG82/* Remote address changed */#undefTARGET_ELIBACC#defineTARGET_ELIBACC83/* Can not access a needed shared library */#undefTARGET_ELIBBAD#defineTARGET_ELIBBAD84/* Accessing a corrupted shared library */#undefTARGET_ELIBSCN#defineTARGET_ELIBSCN85/* .lib section in a.out corrupted */#undefTARGET_ELIBMAX#defineTARGET_ELIBMAX86/* Attempting to link in too many shared libraries */#undefTARGET_ELIBEXEC#defineTARGET_ELIBEXEC87/* Cannot exec a shared library directly */#undefTARGET_EILSEQ#defineTARGET_EILSEQ88/* Illegal byte sequence */#undefTARGET_ENOSYS#defineTARGET_ENOSYS89/* Function not implemented */#undefTARGET_ELOOP#defineTARGET_ELOOP90/* Too many symbolic links encountered */#undefTARGET_ERESTART#defineTARGET_ERESTART91/* Interrupted system call should be restarted */#undefTARGET_ESTRPIPE#defineTARGET_ESTRPIPE92/* Streams pipe error */#undefTARGET_ENOTEMPTY#defineTARGET_ENOTEMPTY93/* Directory not empty */#undefTARGET_EUSERS#defineTARGET_EUSERS94/* Too many users */#undefTARGET_ENOTSOCK#defineTARGET_ENOTSOCK95/* Socket operation on non-socket */#undefTARGET_EDESTADDRREQ#defineTARGET_EDESTADDRREQ96/* Destination address required */#undefTARGET_EMSGSIZE#defineTARGET_EMSGSIZE97/* Message too long */#undefTARGET_EPROTOTYPE#defineTARGET_EPROTOTYPE98/* Protocol wrong type for socket */#undefTARGET_ENOPROTOOPT#defineTARGET_ENOPROTOOPT99/* Protocol not available */#undefTARGET_EPROTONOSUPPORT#defineTARGET_EPROTONOSUPPORT120/* Protocol not supported */#undefTARGET_ESOCKTNOSUPPORT#defineTARGET_ESOCKTNOSUPPORT121/* Socket type not supported */#undefTARGET_EOPNOTSUPP#defineTARGET_EOPNOTSUPP122/* Operation not supported on transport endpoint */#undefTARGET_EPFNOSUPPORT#defineTARGET_EPFNOSUPPORT123/* Protocol family not supported */#undefTARGET_EAFNOSUPPORT#defineTARGET_EAFNOSUPPORT124/* Address family not supported by protocol */#undefTARGET_EADDRINUSE#defineTARGET_EADDRINUSE125/* Address already in use */#undefTARGET_EADDRNOTAVAIL#defineTARGET_EADDRNOTAVAIL126/* Cannot assign requested address */#undefTARGET_ENETDOWN#defineTARGET_ENETDOWN127/* Network is down */#undefTARGET_ENETUNREACH#defineTARGET_ENETUNREACH128/* Network is unreachable */#undefTARGET_ENETRESET#defineTARGET_ENETRESET129/* Network dropped connection because of reset */#undefTARGET_ECONNABORTED#defineTARGET_ECONNABORTED130/* Software caused connection abort */#undefTARGET_ECONNRESET#defineTARGET_ECONNRESET131/* Connection reset by peer */#undefTARGET_ENOBUFS#defineTARGET_ENOBUFS132/* No buffer space available */#undefTARGET_EISCONN#defineTARGET_EISCONN133/* Transport endpoint is already connected */#undefTARGET_ENOTCONN#defineTARGET_ENOTCONN134/* Transport endpoint is not connected */#undefTARGET_EUCLEAN#defineTARGET_EUCLEAN135/* Structure needs cleaning */#undefTARGET_ENOTNAM#defineTARGET_ENOTNAM137/* Not a XENIX named type file */#undefTARGET_ENAVAIL#defineTARGET_ENAVAIL138/* No XENIX semaphores available */#undefTARGET_EISNAM#defineTARGET_EISNAM139/* Is a named type file */#undefTARGET_EREMOTEIO#defineTARGET_EREMOTEIO140/* Remote I/O error */#undefTARGET_EINIT#defineTARGET_EINIT141/* Reserved */#undefTARGET_EREMDEV#defineTARGET_EREMDEV142/* TARGET_Error 142 */#undefTARGET_ESHUTDOWN#defineTARGET_ESHUTDOWN143/* Cannot send after transport endpoint shutdown */#undefTARGET_ETOOMANYREFS#defineTARGET_ETOOMANYREFS144/* Too many references: cannot splice */#undefTARGET_ETIMEDOUT#defineTARGET_ETIMEDOUT145/* Connection timed out */#undefTARGET_ECONNREFUSED#defineTARGET_ECONNREFUSED146/* Connection refused */#undefTARGET_EHOSTDOWN#defineTARGET_EHOSTDOWN147/* Host is down */#undefTARGET_EHOSTUNREACH#defineTARGET_EHOSTUNREACH148/* No route to host */#undefTARGET_EALREADY#defineTARGET_EALREADY149/* Operation already in progress */#undefTARGET_EINPROGRESS#defineTARGET_EINPROGRESS150/* Operation now in progress */#undefTARGET_ESTALE#defineTARGET_ESTALE151/* Stale NFS file handle */#undefTARGET_ECANCELED#defineTARGET_ECANCELED158/* AIO operation canceled *//**TheseerrorareLinuxextensions.*/#undefTARGET_ENOMEDIUM#defineTARGET_ENOMEDIUM159/* No medium found */#undefTARGET_EMEDIUMTYPE#defineTARGET_EMEDIUMTYPE160/* Wrong medium type */#undefTARGET_ENOKEY#defineTARGET_ENOKEY161/* Required key not available */#undefTARGET_EKEYEXPIRED#defineTARGET_EKEYEXPIRED162/* Key has expired */#undefTARGET_EKEYREVOKED#defineTARGET_EKEYREVOKED163/* Key has been revoked */#undefTARGET_EKEYREJECTED#defineTARGET_EKEYREJECTED164/* Key was rejected by service *//* for robust mutexes */#undefTARGET_EOWNERDEAD#defineTARGET_EOWNERDEAD165/* Owner died */#undefTARGET_ENOTRECOVERABLE#defineTARGET_ENOTRECOVERABLE166/* State not recoverable */#defineUNAME_MACHINE"mips64"