Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144383872
D23354.id67265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
618 B
Referenced Files
None
Subscribers
None
D23354.id67265.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D23354: truncate(2): extending the file is required by POSIX 2008
Attached
Detach File
Event Timeline
Log In to Comment