From owner-freebsd-questions Thu Jan 26 10:37:17 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id KAA00181 for questions-outgoing; Thu, 26 Jan 1995 10:37:17 -0800 Received: from prosun.first.gmd.de (prosun.first.gmd.de [192.35.150.136]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id KAA00175 for ; Thu, 26 Jan 1995 10:37:12 -0800 Received: from g386bsd.first.gmd.de by prosun.first.gmd.de (4.1/SMI-4.1) id AA07393; Thu, 26 Jan 95 17:22:53 +0100 Received: by g386bsd.first.gmd.de (RAA15626); Thu, 26 Jan 1995 17:24:12 +0100 From: Andreas Schulz Message-Id: <199501261624.RAA15626@g386bsd.first.gmd.de> Subject: Re: possible fopen/fclose bug? To: steve@khoros.unm.edu (Steven Jorgensen) Date: Thu, 26 Jan 1995 17:24:11 +0059 (MET) Cc: questions@FreeBSD.org In-Reply-To: <9501260535.AA25049@zen.khoros.unm.edu> from "Steven Jorgensen" at Jan 25, 95 10:35:17 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 794 Sender: questions-owner@FreeBSD.org Precedence: bulk > Since this ftruncate is not necessary on the other architectures > we support, I was wondering if this is a bug in freebsd's fclose, > or whether or not it is an undefined action that we've just been > lucky with before this.. :^) Check the imake sources for lseek's and ftruncate's. Many older sources expect that the offset is a long. But FreeBSD has now, like the other 4.4BSD derived Systems a long long instead ( 64 bits vs. 32 bits ). So the lseek and ftruncate should use an "off_t" type, also the intermediate variables where a return from lseek is stored need to be "off_t". ATS ( ats@first.gmd.de or ats@cs.tu-berlin.de ) Andreas Schulz GMD-FIRST 12489 Berlin-Adlershof Rudower Chaussee 5 Gebaeude 13.7 Tel: +49-30-6392-1856/+49-177-2134745 Germany/Europe