aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-23 09:42:30 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-23 09:42:30 +0000
commit21c6d67fad9972ee741ea3d37beffb7ef1d003b5 (patch)
tree50cd028d6c4801bdf5d6396131cff3e8088dbb10 /lib
parent477901743959b8b625f368982f4f13a2f6947d65 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/fcntl.225
1 files changed, 18 insertions, 7 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 86364c151b4d2..bacc797968426 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -249,9 +249,6 @@ current position, or end of the file, respectively.
The value of
.Fa l_len
is the number of consecutive bytes to be locked.
-If
-.Fa l_len
-is negative, the result is undefined.
The
.Fa l_pid
field is only used with
@@ -469,14 +466,14 @@ The argument
.Fa cmd
is
.Dv F_GETLK ,
-.Dv F_SETLK ,
+.Dv F_SETLK
or
.Dv F_SETLKW
and the data to which
.Fa arg
-points is not valid, or
-.Fa fildes
-refers to a file that does not support locking.
+points is not valid or
+.Fa l_len
+is negative.
.It Bq Er EMFILE
The argument
.Fa cmd
@@ -496,6 +493,20 @@ or
.Dv F_SETLKW ,
and satisfying the lock or unlock request would result in the
number of locked regions in the system exceeding a system-imposed limit.
+.It Bq Er EOPNOTSUPP
+.Fa Fildes
+refers to a file that does not support locking.
+.It Bq Er EOVERFLOW
+The argument
+.Fa cmd
+of
+.Dv F_GETLK ,
+.Dv F_SETLK
+or
+.Dv F_SETLKW
+cause
+.Fa off_t
+type calculations overflow.
.It Bq Er EPERM
.Fa Cmd
is