summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-11-14 23:57:36 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-11-14 23:57:36 +0000
commitdf1219219da85e1ed419c398de1814177b99110b (patch)
tree39378b46ad8d1c3aced644d6b18120d8bc83f88c /lib/libc
parentf49333713baf323db3180b3c738d34769a4f5f59 (diff)
clarify the description of append mode;
this comes originally from a mail from mpech@; ok otto@, and no one else objected;
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fopen.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index 48e04f47aad..ff0e0b17ec2 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fopen.3,v 1.18 2005/07/26 03:30:25 jaredy Exp $
+.\" $OpenBSD: fopen.3,v 1.19 2005/11/14 23:57:35 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -90,7 +90,12 @@ The
and
.Fn freopen
functions initially position the stream at the start of the file
-unless the file is opened in append mode,
+unless the file is opened in append mode
+.Po
+.Sq a
+or
+.Sq a+
+.Pc ,
in which case the stream is initially positioned at the end of the file.
.Pp
Opening a file in append mode causes all subsequent writes to it