summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2020-02-20 23:47:09 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2020-02-20 23:47:09 +0000
commit3ae8839afe4104b211b1fc808c07d540f77b96e2 (patch)
tree7741834fbb13e4e8fa09ed4c80119a9021bb4857 /lib
parent1631f217456127bc1c7f14d4aa2eb3ad448c0049 (diff)
downloadsrc-test2-3ae8839afe4104b211b1fc808c07d540f77b96e2.tar.gz
src-test2-3ae8839afe4104b211b1fc808c07d540f77b96e2.zip
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/truncate.29
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index dfbe006965b2..a6ec8f44f44e 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -28,7 +28,7 @@
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd May 4, 2015
+.Dd January 24, 2020
.Dt TRUNCATE 2
.Os
.Sh NAME
@@ -160,6 +160,9 @@ system calls appeared in
These calls should be generalized to allow ranges
of bytes in a file to be discarded.
.Pp
-Use of
+Historically, the use of
.Fn truncate
-to extend a file is not portable.
+or
+.Fn ftruncate
+to extend a file was not portable, but this behavior became required in
+.St -p1003.1-2008 .