svn commit: r327099 - head/lib/libc/stdio

Eitan Adler eadler at FreeBSD.org
Sat Dec 23 05:13:40 UTC 2017


Author: eadler
Date: Sat Dec 23 05:13:39 2017
New Revision: 327099
URL: https://svnweb.freebsd.org/changeset/base/327099

Log:
  fopen.1: document truncation
  
  This documentation truncation similar to POSIX and glibc.
  
  PR:		202545
  Reported by:	intron at intron.ac

Modified:
  head/lib/libc/stdio/fopen.3

Modified: head/lib/libc/stdio/fopen.3
==============================================================================
--- head/lib/libc/stdio/fopen.3	Sat Dec 23 04:50:52 2017	(r327098)
+++ head/lib/libc/stdio/fopen.3	Sat Dec 23 05:13:39 2017	(r327099)
@@ -72,7 +72,7 @@ Fail if the file does not exist.
 .It Dq Li w
 Open for writing.
 The stream is positioned at the beginning of the file.
-Create the file if it does not exist.
+Truncate the file to zero length if it exists or create the file if it does not exist.
 .It Dq Li a
 Open for writing.
 The stream is positioned at the end of the file.


More information about the svn-src-all mailing list