From owner-freebsd-hackers Sun Jun 2 15:52:49 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA15576 for hackers-outgoing; Sun, 2 Jun 1996 15:52:49 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA15566; Sun, 2 Jun 1996 15:52:41 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id IAA09679; Mon, 3 Jun 1996 08:48:16 +1000 Date: Mon, 3 Jun 1996 08:48:16 +1000 From: Bruce Evans Message-Id: <199606022248.IAA09679@godzilla.zeta.org.au> To: alex@freebsd.org, pjf@cts.com Subject: Re: bugs Cc: bde@freebsd.org, dyson@freebsd.org, hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >TRUNCATE(2) FreeBSD Programmer's Manual TRUNCATE(2) >[...] > DESCRIPTION > Truncate() causes the file named by path or referenced by fd to be trun- > cated to at most length bytes in size. > ^^^^^^^ >Richard Stevens (APUE) has the following notes on truncate (see page >92): > These two functions are provided by SVR4 and 4.3+BSD. They are not > part of POSIX.1 or XPG3. > SVR4 truncates or extends a file. 4.3+BSD only truncates a file with > these functions -- they can't be used to extend a file. Extension is supposed to work now. This seems to be standard in 4.4Lite. ISTR it not working in FreeBSD-1.1. The man page is still misleading in 4.4Lite2. Bruce