Date: Sat, 23 Dec 2017 05:13:39 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327099 - head/lib/libc/stdio Message-ID: <201712230513.vBN5Ddi3050412@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712230513.vBN5Ddi3050412>