From owner-cvs-src@FreeBSD.ORG Thu Jun 1 14:07:18 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBA7C16BB22; Thu, 1 Jun 2006 14:07:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D48B43D46; Thu, 1 Jun 2006 14:07:14 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [131.106.58.208] (72-255-64-173.client.stsn.net [72.255.64.173]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k51E71Fw078629; Thu, 1 Jun 2006 10:07:11 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Alexey Dokuchaev Date: Thu, 1 Jun 2006 08:58:38 -0400 User-Agent: KMail/1.9.1 References: <200605311315.k4VDFUhD093628@repoman.freebsd.org> <20060601094950.GU21998@submonkey.net> <20060601100126.GA43737@FreeBSD.org> In-Reply-To: <20060601100126.GA43737@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606010858.39417.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1504/Wed May 31 15:59:14 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.1 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Maxim Konovalov , src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org, Greg 'groggy' Lehey , Ceri Davies Subject: Re: cvs commit: src/sys/ufs/ufs ufs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 14:07:19 -0000 On Thursday 01 June 2006 06:01, Alexey Dokuchaev wrote: > On Thu, Jun 01, 2006 at 10:49:50AM +0100, Ceri Davies wrote: > > On Thu, Jun 01, 2006 at 12:05:23PM +0930, Greg 'groggy' Lehey wrote: > > > On Wednesday, 31 May 2006 at 13:15:29 +0000, Maxim Konovalov wrote: > > > > maxim 2006-05-31 13:15:29 UTC > > > > > > > > FreeBSD src repository > > > > > > > > Modified files: > > > > sys/ufs/ufs ufs_vnops.c > > > > Log: > > > > o According to POSIX, the result of ftruncate(2) is unspecified > > > > for file types other than VREG, VDIR and shared memory objects. > > > > We already handle VREG, VLNK and VDIR cases. Silently ignore > > > > > > > > Revision Changes Path > > > > 1.276 +22 -4 src/sys/ufs/ufs/ufs_vnops.c > > > > > > Is this worth a man page update? > > > > Undoubtedly. Does the attached look like enough? I'm not sure if we > > want to add a STANDARDS section for this when it's valid behaviour. > > > > Ceri > > -- > > That must be wonderful! I don't understand it at all. > > -- Moliere > > > Index: src/lib/libc/sys/truncate.2 > > =================================================================== > > RCS file: /home/ncvs/src/lib/libc/sys/truncate.2,v > > retrieving revision 1.17 > > diff -u -r1.17 truncate.2 > > --- src/lib/libc/sys/truncate.2 20 Jan 2005 09:17:05 -0000 1.17 > > +++ src/lib/libc/sys/truncate.2 1 Jun 2006 09:47:19 -0000 > > @@ -32,7 +32,7 @@ > > .\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 > > .\" $FreeBSD: src/lib/libc/sys/truncate.2,v 1.17 2005/01/20 09:17:05 ru Exp $ > > .\" > > -.Dd June 4, 1993 > > +.Dd June 1, 2006 > > .Dt TRUNCATE 2 > > .Os > > .Sh NAME > > @@ -69,6 +69,10 @@ > > 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 will return the value 0. > > Doesn't "value of 0" sound better? Not to me, though I can't explain why. I think the phrase "X will return the value Y" is common in man pages though. -- John Baldwin