Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 1996 15:50:03 -0800 (PST)
From:      David Greenman <davidg@Root.COM>
To:        freebsd-bugs
Subject:   Re: kern/1092: trouble with ftruncate(2) 
Message-ID:  <199603202350.PAA14779@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/1092; it has been noted by GNATS.

From: David Greenman <davidg@Root.COM>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603202350.PAA14779>