port.c is a set of adaptor routines to make the new standard io library (libS) look enough like the old portable io library (libp) to make tbl work. See run to recompile tbl