summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>1999-05-24 16:37:16 +0000
committeraaron <aaron@openbsd.org>1999-05-24 16:37:16 +0000
commitdb0fc4abd93aa9fac3a0a3e06baf6413ef3f275a (patch)
tree6a41a0a41fe1e30597ae9470d68f76a8f783c3be /lib/libc/stdio
parentmore buf oflows (diff)
downloadwireguard-openbsd-db0fc4abd93aa9fac3a0a3e06baf6413ef3f275a.tar.xz
wireguard-openbsd-db0fc4abd93aa9fac3a0a3e06baf6413ef3f275a.zip
don't lie about being able to arbitrarily intermix reads and writes in stdio
file streams; gson@araneus.fi - NetBSD PR/6072
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fopen.37
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index dadb17c0195..b0ea4875e54 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fopen.3,v 1.4 1996/12/04 02:14:27 deraadt Exp $
+.\" $OpenBSD: fopen.3,v 1.5 1999/05/24 16:37:16 aaron Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -113,10 +113,7 @@ as modified by the process'
umask value (see
.Xr umask 2 ) .
.Pp
-Reads and writes may be intermixed on read/write streams in any order,
-and do not require an intermediate seek as in previous versions of
-.Em stdio .
-This is not portable to other systems, however;
+Reads and writes cannot be arbitrarily intermixed on read/write streams.
.Tn ANSI C
requires that
a file positioning function intervene between output and input, unless