From owner-freebsd-bugs Wed Mar 20 15:50:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA14812 for bugs-outgoing; Wed, 20 Mar 1996 15:50:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA14779 Wed, 20 Mar 1996 15:50:03 -0800 (PST) Date: Wed, 20 Mar 1996 15:50:03 -0800 (PST) Message-Id: <199603202350.PAA14779@freefall.freebsd.org> To: freebsd-bugs Cc: From: David Greenman Subject: Re: kern/1092: trouble with ftruncate(2) Reply-To: David Greenman Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/1092; it has been noted by GNATS. From: David Greenman To: admin@dmzpc.bridge.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/1092: trouble with ftruncate(2) Date: Wed, 20 Mar 1996 15:48:39 -0800 > if (ftruncate (fd, 0L) ) { The argument to ftruncate is an off_t which is 64bits. The prototype for ftruncate() is in unistd.h...this is clearly documented in the manual page. If you bring the prototype in scope by including unistd.h or change the above to be "fd, (off_t) 0", I think you'll find that your program works as expected. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project