What does the word hammock mean?

A hammock is a kind of bed made of a sheet of canvas or other heavy fabric and tied by both ends to walls, trees, the sides of a ship or something. Hammocks were used in sailing ships because they are easy to put up and take down and they do not take up much space when they are taken down.