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:  [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to