Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 18 Aug 2003 09:58:46 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Question about large file support Message-ID: <20030818075846.GR3101@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030817170514 DOT GJ3101 AT cygbert DOT vinschen DOT de> <20030817215913 DOT 41384 DOT qmail AT web41508 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030817215913.41384.qmail@web41508.mail.yahoo.com> User-Agent: Mutt/1.4.1i On Sun, Aug 17, 2003 at 02:59:13PM -0700, ColinB wrote: > Thanks Corinna, fseeko is new to me! > > So for 64 bit file offsets I can use either: > > open/lseek/close > > or > > fopen/fseeko/ftello/fclose > > But in both cases do I have to specify #define _FILE_OFFSET_BITS 64 to > make off_t 64 bit, or will off_t be 64 bits by default in cygwin 1.5.0 > ? It's transparent. If you build an application using the 1.5.x headers and libs, the affected types like off_t or fpos_t are 64 bit types automagically. The same goes for uid_t/gid_t becoming 32 bit instead of 16 bit. To quote a mail I've sent to the cygwin-apps ML a month ago: [...] please note that the new datatypes are used automatically. There isn't any choice between e.g. a off_t with 32 bit and a off64_t with 64 bit and no corresponding functions as stat and stat64. Building under 1.5.0 means, off_t is 64 bit now. stat is expecting a struct stat with 64 bit off_t. Full stop. No compile time options. All or nothing. Well, you got the idea, I guess... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/