Hardware. Also known as a machine screw, a fastener with threads and a flat hex or square head. Compare/contrast with stove bolt, carriage bolt.