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