aboutsummaryrefslogtreecommitdiffstats
path: root/man3/lockf.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2006-02-10 20:27:59 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2006-02-10 20:27:59 +0000
commit0febdb5ca16517d1de75e01ccdce58e55f753570 (patch)
treeeff5e97d08372b1c1513f4fb615de533ad74cce4 /man3/lockf.3
parentc533af9d27b51f685daa67b29398bb73acc1b5d4 (diff)
downloadman-pages-0febdb5ca16517d1de75e01ccdce58e55f753570.tar.gz
Fix up discussion of EAGAIN/EACCESS errors.
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