Single- and Double-acting cylinder