summaryrefslogtreecommitdiff
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-03-11 05:18:02 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-03-11 05:18:02 +0000
commit429f7efba571862ed48aa60960ae7d0c28f42cb5 (patch)
tree48432f00053e5d918d1e92973505ea24901e767e /lib/libc/sys/open.2
parentfe835c13d60b858dba6378a981af7e67eebe031e (diff)
Better grammar, move HISTORY before CAVEATS, and add some missing commas.
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r--lib/libc/sys/open.223
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index e8dedd86a54..27931ae4164 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: open.2,v 1.20 2001/02/22 22:53:55 avsm Exp $
+.\" $OpenBSD: open.2,v 1.21 2001/03/11 05:18:01 aaron Exp $
.\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -282,8 +282,7 @@ and either
.Dv O_EXLOCK
or
.Dv O_SHLOCK
-are set and the file
-is already locked.
+are set and the file is already locked.
.El
.Sh SEE ALSO
.Xr chmod 2 ,
@@ -307,7 +306,7 @@ and
.Dv POSIX
specifies three different flavors for syncronous I/O:
.Dv O_SYNC ,
-.Dv O_DSYNC
+.Dv O_DSYNC ,
and
.Dv O_RSYNC .
In
@@ -316,23 +315,23 @@ these are all equivalent.
.Pp
The
.Dv O_SHLOCK ,
-.Dv O_EXLOCK
+.Dv O_EXLOCK ,
and
.Dv O_NOFOLLOW
flags are non-standard extensions and should not be used if portability
is of concern.
+.Sh HISTORY
+An
+.Fn open
+function call appeared in
+.At v6 .
.Sh CAVEATS
The
.Dv O_TRUNC
-flag requires that
+flag requires that one of
.Dv O_RDWR
or
.Dv O_WRONLY
-are specified, or else
+also be specified, else
.Dv EINVAL
is returned.
-.Sh HISTORY
-An
-.Fn open
-function call appeared in
-.At v6 .