*BSD News Article 33796


Return to BSD News archive

Xref: sserve comp.windows.x.i386unix:10936 comp.os.386bsd.apps:1326 comp.os.386bsd.questions:12050
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!warrane.connect.com.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.windows.x.i386unix,comp.os.386bsd.apps,comp.os.386bsd.questions
Subject: Re: __NetBSD__ X11R6 i386
Date: 4 Aug 1994 12:38:40 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 15
Message-ID: <31pkbg$ems@kralizec.zeta.org.au>
References: <30dr4j$phk@darum.uni-mannheim.de> <bakulCtsIBF.4BH@netcom.com> <3813@krabat.marco.de>
NNTP-Posting-Host: kralizec.zeta.org.au

In article <3813@krabat.marco.de>,
Matthias Pfaller <leo@krabat.marco.de> wrote:
>
>The problem is indeed the 64 bit off_t, but you don't need the proper
>lseek() declaration but the proper ftruncate declaration. Anyway, thank's
>for the hint. It put me on the right track...

It's difficult to avoid having lseek declared whether you want it or
not.  It is declared in <sys/types.h>, and (unless _ANSI_SOURCE) or
__STRICT_ANSI__ is defined) <stdio.h> includes <sys/types.h>.  Perhaps
the same treatment should be used for ftruncate() and other functions
that involve unusual types.  Something less bogus than including all of
<sys/types.h> in a few (but not all) ANSI headers should be used.
-- 
Bruce Evans  bde@kralizec.zeta.org.au