From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8846 invoked by alias); 6 Dec 2007 21:32:42 -0000 Received: (qmail 8837 invoked by uid 22791); 6 Dec 2007 21:32:42 -0000 X-Spam-Check-By: sourceware.org Received: from nm.jriver.com (HELO linux.jriver.com) (204.29.156.98) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 06 Dec 2007 21:32:36 +0000 Received: (qmail 721 invoked from network); 6 Dec 2007 21:32:37 -0000 Received: from unknown (HELO gateley.jriver.com) (199.242.131.137) by 0 with SMTP; 6 Dec 2007 21:32:37 -0000 Date: Thu, 06 Dec 2007 21:32:00 -0000 From: John Gateley To: gcc-help@gcc.gnu.org Cc: Brian Dessent Subject: Re: 64 bit I/O functions (such as stat/ftruncate) Message-Id: <20071206153232.ef2dcba4.gateley@jriver.com> In-Reply-To: <47585871.181B95CD@dessent.net> References: <20071206135116.4142b02d.gateley@jriver.com> <47585871.181B95CD@dessent.net> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.10.6; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00150.txt.bz2 On Thu, 06 Dec 2007 12:15:45 -0800 Brian Dessent wrote: > John Gateley wrote: > > > I'm looking for 64 bit I/O functions, such as ftruncate or > > stat/fstat/lstat. Some functions exist in 64 bit versions > > (such as lseek64), but for others I couldn't find anything. > > This is using g++ on linux. > > Normally you don't call the 64 bit versions explicitly, you just add > -D_FILE_OFFSET_BITS=64 to CPPFLAGS and you get the large-file aware > version of all interfaces without the 64 suffix. > ... Thanks very much... j -- John Gateley