From 471b1727447b50718e7a57bbe8f8166befdf41b4 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 23 Aug 2001 19:00:34 +0000 Subject: [PATCH] Now we implement l_len<0 per POSIX, describe it. --- lib/libc/sys/fcntl.2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 03a097dae57..d22473b63ef 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -249,6 +249,9 @@ 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, start means end edge of the region. The .Fa l_pid field is only used with @@ -471,9 +474,7 @@ or .Dv F_SETLKW and the data to which .Fa arg -points is not valid or -.Fa l_len -is negative. +points is not valid. .It Bq Er EMFILE The argument .Fa cmd