Page MenuHomeFreeBSD

D23354.id67265.diff
No OneTemporary

D23354.id67265.diff

Index: lib/libc/sys/truncate.2
===================================================================
--- lib/libc/sys/truncate.2
+++ 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
Mon, Feb 9, 4:15 AM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28535422
Default Alt Text
D23354.id67265.diff (618 B)

Event Timeline