A sailing ship had a rig of at least three masts , square rigged on all of them .
In technical terms , a ship was a sailing vessel with a specific rig of at least three masts , square rigged on all of them , making the sailing adjective redundant .