Most of these photographs are from the 3rd floor of the Charleston jail. This was where the prisoners considered dangerous were housed.
Guards did not enter the area without first checking through peep holes in the first doors. Of course gates of bars were right behind any solid doors.
There were also special cell areas where prisoners were disciplined.
And last here is the far end of the 3rd floor, top of the stairs.
At some point this was also used as an asylum. It was the only one in Charleston.
For more information click this link.