I would call those a Blunderbuss, essentially an early shotgun. An early naval antipersonnel fire arm. They were loaded with whatever was laying around, nuts, bolts, nails, rock salt... As long as the powder held out you could keep the boarders at bay.