tcp: consolidate syscall wrapper for linux/386