mirror of https://github.com/mkerrisk/man-pages
lockf.3: ERRORS: EBADF can also occur for nonwritable file descriptor
As noted in the DESCRIPTION, the file descriptor must be writable in order to place a lock. Reported-by: Mikel Ward <mikel@mikelward.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a2f4e5a8ba
commit
c28d4af607
12
man3/lockf.3
12
man3/lockf.3
|
@ -19,7 +19,7 @@
|
|||
.\" Added section stuff, aeb, 2002-04-22.
|
||||
.\" Corrected include file, drepper, 2003-06-15.
|
||||
.\"
|
||||
.TH LOCKF 3 2010-09-20 "GNU" "Linux Programmer's Manual"
|
||||
.TH LOCKF 3 2011-09-11 "GNU" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
lockf \- apply, test or remove a POSIX lock on an open file
|
||||
.SH SYNOPSIS
|
||||
|
@ -124,7 +124,15 @@ been memory-mapped by another process.
|
|||
.TP
|
||||
.B EBADF
|
||||
.I fd
|
||||
is not an open file descriptor.
|
||||
is not an open file descriptor; or
|
||||
.I cmd
|
||||
is
|
||||
.B F_LOCK
|
||||
or
|
||||
.BR F_TLOCK
|
||||
and
|
||||
.I fd
|
||||
is not a writable file descriptor.
|
||||
.TP
|
||||
.B EDEADLK
|
||||
The command was
|
||||
|
|
Loading…
Reference in New Issue