DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T ┃
Length: 6200 (0x1838) Types: TextFile Names: »TCPERR_C«
└─⟦afbc8121e⟧ Bits:30000532 8mm tape, Rational 1000, MC68020_OS2000 7_2_2 └─ ⟦77aa8350c⟧ »DATA« └─⟦f794ecd1d⟧ └─⟦this⟧
/*==========================================================================*/ /* TCPERR.C */ /* Programmer: Lars Engdahl Mikrotell 87.06.25 */ /* */ /* Purpose: */ /* */ /*--------------------------------------------------------------------------*/ #include <stdio.h> #include "/H0/TCP/INCL/msocket.h" /*--------------------------------------------------------------------------*/ /*\f */ /*===========================================================================*/ print_error(err_no,txt1) int err_no; char *txt1; { char *txt2,*txt3; switch(err_no & 0xff) { case 0: txt2= " "; break; case 1: txt2= "The EXOS board does not own the buffer to which the\n\ host message queue header points.\n" ; break; case 2: txt2= "No such file or directory\n"; break; case 3: txt2= "No such process. Should not happen for OS9.\n"; break; case 4: txt2= "Interrupted system call.\n "; break; case 5: txt2= "I/O error\n "; break; case 6: txt2= "Should not happen for OS9.\n"; break; case 7: txt2= "Should not happen for OS9.\n"; break; case 8: txt2= "Exec formst error\n "; break; case 9: txt2= "A close request for a nonexistent socket.\n"; break; case 10: txt2= "No children.\n"; break; case 11: txt2= "No more processes.\n "; break; case 12: txt2= "Not enough core.\n"; break; case 13: txt2= "* Permission denied. - Port no <1024 are privileged.\n"; break; case 14: txt2= "Bad address.\n "; break; case 15: txt2= "Block device required.\n"; break; case 16: txt2= "Mount device busy.\n"; break; case 17: txt2= "Should not happen for OS9.\n"; break; case 18: txt2= "Should not happen for OS9.\n"; break; case 19: txt2= "Should not happen for OS9.\n"; break; case 20: txt2= "Should not happen for OS9.\n"; break; case 21: txt2= "Should not happen for OS9.\n"; break; case 22: txt2= "Invalid argument.\n"; break; case 23: txt2= "Should not happen for OS9.\n"; break; case 24: txt2= "Should not happen for OS9.\n"; break; case 25: txt2= "Should not happen for OS9.\n"; break; case 26: txt2= "Should not happen for OS9.\n"; break; case 27: txt2= "File too large.\n"; break; case 28: txt2= "No space left on device.\n"; break; case 29: txt2= "Illegal seek.\n"; break; case 30: txt2= "Should not happen for OS9.\n"; break; case 31: txt2= "Too many links.\n"; break; case 32: txt2= "* Broken connection. I/O to a closed connection was attemted.\n"; break; case 33: txt2= "Argument too large.\n"; break; case 34: txt2= "Result to large.\n"; break; case 35: txt2= "Operation would block.\n\ An I/O operation that would normally have blocked\ cannot block because\n FIONBIO is set.\n"; break; case 36: txt2= "Operation now in progress.\n\ Returned by connect and close when FIONBIO has been set.\n"; break; case 37: txt2= "Operation already in progress.\n" ; break; case 38: txt2= "Socket operation on a non.socket.\n"; break; case 39: txt2= "Destination address required.\n"; break; case 40: txt2= "Message too long.\n"; break; case 41: txt2= "Protocoll wrong type for socket.\n"; break; case 42: txt2= "Protocoll not available.\n"; break; case 43: txt2= "Protocoll not supported.\n"; break; case 44: txt2= "Socket type not supported\n"; break; case 45: txt2= "* Operation not supported on socket.\n"; break; case 46: txt2= "Protocoll family not supported.\n"; break; case 47: txt2= "* Address family not supported.\n"; break; case 48: txt2= "* UDP/TCP port number already in use.\n"; break; case 49: txt2= "Cannot assign requested address.\n"; break; case 50: txt2= "Network is down.\n"; break; case 51: txt2= "Network is unreachable.\n"; break; case 52: txt2= "Network dropped connection on reset.\n"; break; case 53: txt2= "Network caused connection abort.\n"; break; case 54: txt2= "Connection reset by peer.\n"; break; case 55: txt2= "* No buffer space available (for new sockets) on\ the EXOS board.\n"; break; case 56: txt2= "Socket is already connected.\n"; break; case 57: txt2= "Socket is not connected.\n"; break; case 58: txt2= "Can't send after socket shutdown.\n"; break; case 59: txt2= "Too many refrences.\n"; break; case 60: txt2= "Connection timed out.\n"; break; case 61: txt2= "Connection refused. No accept was made on remote system.\n"; break; case 62: txt2= "Should not happen for OS9.\n"; break; case 63: txt2= "Should not happen for OS9.\n"; break; case 64: txt2= "Host is down.\n"; break; case 65: txt2= "Unspecified OS error."; break; } switch(err_no & 0xff00) { case 0: txt3 = " "; break ; case ERR_UNVREPLY: txt3="Unvalid reply in message.\n" ; break ; case ERR_UNVSOCK: txt3="Unvalid socket id used in a TCP I/O call.\n"; break; case ERR_UNVCMD: txt3="Unvalid command in nioctl() call.\n"; break ; case ERR_NOSOCK: txt3="nsocket(): No space in OS9 for more sockets.\n"; break ; case ERR_PREAD: txt3="nread(): part read with error.\n"; break ; case ERR_PWRITE: txt3="nwrite(): part write with error.\n"; break ; case ERR_BADCNT: txt3= "nread(): Unvalid bytecount returned from EXOS board.\n"; break ; case ERR_TIMEOUT: txt3="* Time out in exsend() when waiting for message.\n"; break; case ERR_KILLED: txt3="* Killed in exsend() when waiting for message.\n"; break; default: txt3 = "Undefined error code.\n"; break; } printf(">>>>>>>> TCP ERROR code = x%x. %s\n%s%s",err_no,txt1,txt2,txt3); } /*--------------------------------------------------------------------------*/