summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/truncate.2
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1996-06-08 15:59:43 +0000
committeralex <alex@FreeBSD.org>1996-06-08 15:59:43 +0000
commitcb6ab7f49330fefcb74bd6d9944bc4526e5fc148 (patch)
treecac470e966db4b635d044e44a90a328d94a4773c /lib/libc/sys/truncate.2
parent597045971fd87a3ae1c6855f643f69fa286c5a86 (diff)
downloadFreeBSD-src-cb6ab7f49330fefcb74bd6d9944bc4526e5fc148.zip
FreeBSD-src-cb6ab7f49330fefcb74bd6d9944bc4526e5fc148.tar.gz
Rephrase some things as suggested by Bruce.
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