Ports owned by PID

From LinuxNewbie

I would like to know if there is a pfiles equivalent for Linux. Apparantly on Solaris, this command lets you view which ports a process has open.

I know I can find out which process has a certain port open by using lsof, but what I'm trying to do is list all of the ports that a specific PID has open

netstat -punta