diff options
author | 2015-10-14 22:39:04 +0000 | |
---|---|---|
committer | 2015-10-14 22:39:04 +0000 | |
commit | 79cdab95cfde51b6de6e2a556d13e8df373a1150 (patch) | |
tree | 68d05da3c1d503a1434655b8bd1bb1168a7ce214 /lib/libc | |
parent | Add a dummy "flock" request that will allow file locking. It is (diff) | |
download | wireguard-openbsd-79cdab95cfde51b6de6e2a556d13e8df373a1150.tar.xz wireguard-openbsd-79cdab95cfde51b6de6e2a556d13e8df373a1150.zip |
Document flock request
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/pledge.2 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2 index 8c6297a4711..a08a0729529 100644 --- a/lib/libc/sys/pledge.2 +++ b/lib/libc/sys/pledge.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pledge.2,v 1.6 2015/10/13 07:23:49 jmc Exp $ +.\" $OpenBSD: pledge.2,v 1.7 2015/10/14 22:39:04 millert Exp $ .\" .\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: October 13 2015 $ +.Dd $Mdocdate: October 14 2015 $ .Dt PLEDGE 2 .Os .Sh NAME @@ -334,6 +334,16 @@ relating to a file: .Xr lchown 2 , .Xr fchown 2 , .Xr utimes 2 . +.It Va "flock" +File locking via +.Xr fcntl 2 , +.Xr flock 2 , +.Xr lockf 3 , +and +.Xr open 2 +is allowed. +No distinction is made between shared and exclusive locks. +This request is required for unlock as well as lock. .It Va "unix" The following system calls are allowed to operate in the .Dv AF_UNIX |