Page MenuHomeFreeBSD

D23354.diff
No OneTemporary

D23354.diff

Index: head/lib/libc/sys/truncate.2
===================================================================
--- head/lib/libc/sys/truncate.2
+++ head/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 @@
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 .

File Metadata

Mime Type
text/plain
Expires
Fri, May 1, 7:30 AM (1 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32562278
Default Alt Text
D23354.diff (633 B)

Event Timeline