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