1. Add psparttype() and pscatpt() calls to the MacDonald catalog API.
2. Fix a few problems in the TCPSRV/TCPCLI routines--not cleaning up properly after certain kinds of errors, returning misleading error numbers for certain errors during socket create.