init_InvalidIO() initializes the invalid I/O system. This function must be called before any sockets are created.
add_InvalidIO() adds a file descriptor to the invalid I/O list. This function is called by SendRec(3tcp) and RecvRec(3tcp) when an error occurs. Usually it will not be called by a program directly.
rem_InvalidIO removes a file descriptor from the invalid I/O list. Usually this function is called when the socket is closed by the program as part of invalid I/O cleanup.
get_InvalidIO gets the 1st available bad fd from invalid I/O list. This function is called by cleanup software.
test_InvalidIO test to see if fd is on the invalid I/O list. This function is called by SendRec(3tcp) and RecvRec(3tcp) before I/O is attempted. If it returns true I/O is skipped. Usually it will not be called by a program directly.
This function is part of libtcp.
add_InvalidIO returns nothing.
rem_InvalidIO returns nothing.
get_InvalidIO returns the number of file descriptors in the bad I/O list. If the returned count is 0, fd is set to -1.
test_InvalidIO returns 1 if the file descriptor is invalid, else it returns 0.