In a syringe type pump with a barrel (2) and a piston (4) movable in the interior of the barrel the barrel has the shape of a segment of a toroidal tube. By this shape the overall size of the pump is significantly reduced. A device for injecting fluid into a patients body or removing body fluid therefrom is using a curved barrel.