aboutsummaryrefslogtreecommitdiffstats
path: root/man3/lockf.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/lockf.3')
-rw-r--r--man3/lockf.36
1 files changed, 4 insertions, 2 deletions
diff --git a/man3/lockf.3 b/man3/lockf.3
index 998e7084f1..69cafe5ec7 100644
--- a/man3/lockf.3
+++ b/man3/lockf.3
@@ -83,7 +83,9 @@ Test the lock: return 0 if the specified section
is unlocked or locked by this process; return \-1, set
.I errno
to
-.BR EACCES ,
+.BR EAGAIN
+.RB ( EACCES
+on some other systems),
if another process holds a lock.
.SH "RETURN VALUE"
On success, zero is returned. On error, \-1 is returned, and
@@ -91,7 +93,7 @@ On success, zero is returned. On error, \-1 is returned, and
is set appropriately.
.SH ERRORS
.TP
-.B EAGAIN
+.BR EACCES " or " EAGAIN
The file is locked and
.B F_TLOCK
or