What is the meaning of Three_hots_and_a_cot?

Prison.

Basic food and shelter.

Source: wiktionary.org