summaryrefslogtreecommitdiffstats
path: root/lib/libutil/flopen.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out previous commit until I figure out why my regression test fails.des2007-08-031-7/+4
| | | | Approved by: re (kensmith)
* Use fcntl(2)-style locks instead of less-portable flock(2)-style locks.des2007-08-031-4/+7
| | | | Approved by: re (kensmith)
* Nit: avoid shadowing truncate(2) with a local variable.des2007-05-231-3/+3
|
* Fix stupid braino in previous commit.des2007-05-231-1/+1
|
* If (flags & O_TRUNC), don't truncate the file until we've successfullydes2007-05-231-1/+11
| | | | | | locked it. MFC after: 3 weeks
* Well gag me with a spoon... I'm so used to working at high WARNS levelsdes2007-05-101-0/+4
| | | | that I make stupid fundamental mistakes like this when I don't.
* Remove superfluous unexpanded RCS tag.des2007-05-101-2/+0
|
* DTRT when O_NONBLOCK is specified.des2007-05-101-4/+7
| | | | MFC after: 3 weeks
* I'm tired of seeing this done incorrectly and non-portably, so add ades2007-05-101-0/+91
flopen(3) function which reliably opens and locks a file. MFC after: 3 weeks
OpenPOWER on IntegriCloud