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