aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2006-06-14 08:41:15 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2006-06-14 08:41:15 +0000
commitbbbd2b2aa25dbd5be22a3a0c00c85e3be0fb4479 (patch)
tree8cba54cacbe28185de670125b895ef86ad537223 /lib
parentefb8a018adb3033195adf4e37ed7a5adf15f9f72 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/truncate.26
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index 08cc9477c0ae..29f04b2f10b1 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -32,7 +32,7 @@
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd June 1, 2006
.Dt TRUNCATE 2
.Os
.Sh NAME
@@ -69,6 +69,10 @@ With
the file must be open for writing.
.Sh RETURN VALUES
.Rv -std
+If the file to be modified is not a directory or
+a regular file, the
+.Fn truncate
+call has no effect and returns the value 0.
.Sh ERRORS
The
.Fn truncate