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