From owner-cvs-src@FreeBSD.ORG Thu Jun 1 09:49:53 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 028DF16B47E; Thu, 1 Jun 2006 09:49:53 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E22F43D46; Thu, 1 Jun 2006 09:49:51 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FljoM-0008ma-6f; Thu, 01 Jun 2006 10:49:50 +0100 Date: Thu, 1 Jun 2006 10:49:50 +0100 From: Ceri Davies To: Greg 'groggy' Lehey Message-ID: <20060601094950.GU21998@submonkey.net> Mail-Followup-To: Ceri Davies , Greg 'groggy' Lehey , Maxim Konovalov , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200605311315.k4VDFUhD093628@repoman.freebsd.org> <20060601023523.GA80617@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="21BR8y1c1zpF/Inb" Content-Disposition: inline In-Reply-To: <20060601023523.GA80617@wantadilla.lemis.com> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: Maxim Konovalov , cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org 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 09:49:53 -0000 --21BR8y1c1zpF/Inb Content-Type: multipart/mixed; boundary="+NAfxSaP7cKOSWOx" Content-Disposition: inline --+NAfxSaP7cKOSWOx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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 --=20 That must be wonderful! I don't understand it at all. -- Moliere --+NAfxSaP7cKOSWOx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="truncate.diff" 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. .Sh ERRORS The .Fn truncate --+NAfxSaP7cKOSWOx-- --21BR8y1c1zpF/Inb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEfrg+ocfcwTS3JF8RAqxoAKDALNnAowm29mvsNq5SrTbMgYwHLgCfXN3e Yobz5g8pb3A9FBq7vyzuaAE= =PFxl -----END PGP SIGNATURE----- --21BR8y1c1zpF/Inb--