diff options
Diffstat (limited to 'lib/libutil/flopen.3')
| -rw-r--r-- | lib/libutil/flopen.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libutil/flopen.3 b/lib/libutil/flopen.3 index 78792fc2cdc6..9025d65e304c 100644 --- a/lib/libutil/flopen.3 +++ b/lib/libutil/flopen.3 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 30, 2007 +.Dd May 10, 2007 .Dt FLOPEN 3 .Os .Sh NAME @@ -46,9 +46,12 @@ The function opens or creates a file and acquires an exclusive lock on it. It is essentially equivalent with calling .Fn open -with the same parameters and then acquiring a lock on the entire file -using -.Fn fcntl "F_SETLK" , +with the same parameters followed by +.Fn flock +with an +.Va operation +argument of +.Dv LOCK_EX , except that .Fn flopen will attempt to detect and handle races that may occur between opening @@ -83,12 +86,12 @@ returns a valid file descriptor. Otherwise, it returns -1, and sets .Va errno as described in -.Xr fcntl 2 +.Xr flock 2 and .Xr open 2 . .Sh SEE ALSO .Xr errno 2 , -.Xr fcntl 2 , +.Xr flock 2 , .Xr open 2 .Sh AUTHORS .An -nosplit |
