What does "treenail" mean?

Treenail: A long wooden pin used in fastening the planks of a vessel to the timbers or to each other. [Written also trenail, and trunnel.]

Sources