summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/truncate.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/truncate.2')
-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 b9c039a..0503535 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.
OpenPOWER on IntegriCloud