diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-11 05:34:01 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-11 05:34:01 +0000 |
commit | d9a57241803a038a2c2513df9e83c64717748070 (patch) | |
tree | 6ab8e9e5f362f32a4eac7fa8953008fe0cdb4751 /lib | |
parent | 76e5ca6884086a19edffe5f767c3a6eabe6e423f (diff) |
Convert flags list from a literal display to a nicely formatted list.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/open.2 | 42 |
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 |