summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1996-06-08 15:59:43 +0000
committerAlexander Langer <alex@FreeBSD.org>1996-06-08 15:59:43 +0000
commit1f16ebd9a2f91dfe97933e4c614693ff92a9978c (patch)
treecac470e966db4b635d044e44a90a328d94a4773c /lib/libc
parent1638d6b6d5326b37d996ce49fb54ddfc3bc16ad0 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/truncate.25
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index b9c039a766bc..0503535feca4 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -52,11 +52,12 @@ or referenced by
.Fa fd
to be truncated or extended to
.Fa length
-bytes in size. If the file previously
+bytes in size. If the file
was larger than this size, the extra data
is lost.
If the file was smaller than this size,
-extra zeros are appended.
+it will be extended as if by writing bytes
+with the value zero.
With
.Fn ftruncate ,
the file must be open for writing.