On Thu, 1 Jun 2006, 10:49+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.
@@ -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 We need to mention truncate(2) does nothing for such files. -- Maxim Konovalov _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"
