From 332a76f71be5768c192b216e7ec3243068a8ecd7 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Thu, 1 Jun 2006 14:20:43 +0000 Subject: [PATCH] o Document the fact truncate(2) has no effect for !VDIR or !VREG files. Submitted by: ceri --- lib/libc/sys/truncate.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2 index 08cc9477c0a..29f04b2f10b 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