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