summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-05-05 20:47:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-05-05 20:47:24 +0000
commitf34f267581b4d8a970f91670e32562c4360ac443 (patch)
treebd2ae3faabd958df072ba5bfd353f87a1582592b /lib
parent3478640e25e4d22b92191d2e7be27db613a2a48d (diff)
O_SYNC is valid for F_GETFL/F_SETFL too
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/fcntl.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 4276d4856ae..946f29ea4be 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fcntl.2,v 1.23 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: fcntl.2,v 1.24 2004/05/05 20:47:23 millert Exp $
.\" $NetBSD: fcntl.2,v 1.6 1995/02/27 12:32:29 cgd Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -181,6 +181,13 @@ when
.Tn I/O
is possible, e.g.,
upon availability of data to be read.
+.It Dv O_SYNC
+Cause writes to be syncronous.
+Data will be written to the physical device instead of
+just being stored in the buffer cache; corresponds to the
+.Dv O_SYNC
+flag of
+.Xr open 2 .
.El
.Pp
Several commands are available for doing advisory file locking;