The text c0a77083d7c9, as FreeBSD 10.4-RELEASE shipped it.
Reliably open and lock a file
flopen(3) on FreeBSD now