svn commit: r328006 - stable/11/lib/libc/stdio

Eitan Adler eadler at FreeBSD.org
Mon Jan 15 16:51:06 UTC 2018


Author: eadler
Date: Mon Jan 15 16:51:04 2018
New Revision: 328006
URL: https://svnweb.freebsd.org/changeset/base/328006

Log:
  MFC r327099:
  
  fopen.1: document truncation
  
  This documentation truncation similar to POSIX and glibc.
  
  PR:	202545

Modified:
  stable/11/lib/libc/stdio/fopen.3
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/stdio/fopen.3
==============================================================================
--- stable/11/lib/libc/stdio/fopen.3	Mon Jan 15 16:40:43 2018	(r328005)
+++ stable/11/lib/libc/stdio/fopen.3	Mon Jan 15 16:51:04 2018	(r328006)
@@ -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