summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-10-14 22:39:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-10-14 22:39:05 +0000
commitf670503a3ee92032ff7148d34e1fb0442fe16928 (patch)
treef8184288d85c6c9f66814a687c1ddb0cb9beb4f5 /lib
parent56c956bee049406c99129050fcfa2edc772f55e5 (diff)
Document flock request
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/pledge.214
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