Single- and double-acting cylinders