summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-03-11 05:34:00 +0000
committeraaron <aaron@openbsd.org>2001-03-11 05:34:00 +0000
commitd13b750b0d72fca77bc66d1a247f40f5f080c201 (patch)
tree7f76510cf9743b9bff347020fe21aa835025c6f6 /lib/libc/sys/open.2
parentSection shuffling. (diff)
downloadwireguard-openbsd-d13b750b0d72fca77bc66d1a247f40f5f080c201.tar.xz
wireguard-openbsd-d13b750b0d72fca77bc66d1a247f40f5f080c201.zip
Convert flags list from a literal display to a nicely formatted list.
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r--lib/libc/sys/open.242
1 files changed, 27 insertions, 15 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 27931ae4164..c89546e3ae9 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: open.2,v 1.21 2001/03/11 05:18:01 aaron Exp $
+.\" $OpenBSD: open.2,v 1.22 2001/03/11 05:34:00 aaron Exp $
.\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -68,20 +68,32 @@ The flags specified are formed by
.Tn OR Ns 'ing
the following values
.Pp
-.Bd -literal -offset indent -compact
-O_RDONLY open for reading only
-O_WRONLY open for writing only
-O_RDWR open for reading and writing
-O_NONBLOCK do not block on open or for data to become available
-O_APPEND append on each write
-O_CREAT create file if it does not exist
-O_TRUNC truncate size to 0
-O_EXCL error if create and file exists
-O_SYNC perform syncronous I/O operations
-O_SHLOCK atomically obtain a shared lock
-O_EXLOCK atomically obtain an exclusive lock
-O_NOFOLLOW if last path element is a symlink, don't follow it
-.Ed
+.Bl -tag -width O_NONBLOCK -offset indent -compact
+.It Dv O_RDONLY
+Open for reading only.
+.It Dv O_WRONLY
+Open for writing only.
+.It Dv O_RDWR
+Open for reading and writing.
+.It Dv O_NONBLOCK
+Do not block on open or for data to become available.
+.It Dv O_APPEND
+Append on each write.
+.It Dv O_CREAT
+Create file if it does not exist.
+.It Dv O_TRUNC
+Truncate size to 0.
+.It Dv O_EXCL
+Error if create and file exists.
+.It Dv O_SYNC
+Perform syncronous I/O operations.
+.It Dv O_SHLOCK
+Atomically obtain a shared lock.
+.It Dv O_EXLOCK
+Atomically obtain an exclusive lock.
+.It Dv O_NOFOLLOW
+If last path element is a symlink, don't follow it.
+.El
.Pp
Opening a file with
.Dv O_APPEND