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