From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14420 invoked by alias); 23 May 2004 02:54:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14351 invoked from network); 23 May 2004 02:54:08 -0000 Received: from unknown (HELO timesys.com) (66.30.22.40) by sourceware.org with SMTP; 23 May 2004 02:54:08 -0000 Received: by timesys.com (Postfix, from userid 201) id 6F665400758; Sat, 22 May 2004 22:54:07 -0400 (EDT) Date: Sun, 23 May 2004 09:36:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: ftruncate64() question? Message-ID: <20040523025407.GA5586@coe.bosbc.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <6.1.0.6.0.20040521150946.03262f68@pop.theworld.com> <20040521192359.GA6832@coe.bosbc.com> <20040521203759.GB7790@coe.bosbc.com> <00ba01c43f74$50560f30$64fda287@docbill002> <00af01c4403b$42c1c5e0$64fda287@docbill002> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00af01c4403b$42c1c5e0$64fda287@docbill002> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-05/txt/msg00768.txt.bz2 On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote: >> What's wrong with ftruncate? > >ftruncate fails with files larger >= 2GB because off_t gets interpreted as >32 bit signed integer... bash-2.05b$ cat off_t.c #include #include int main (int argc, char **argv) { printf ("sizeof(off_t) = %d\n", sizeof(off_t)); exit (0); } bash-2.05b$ ./off_t sizeof(off_t) = 8 >I can find some archived cygwin messages referencing bug fixes to >ftruncate64 in the cygwin.dll. However, using ftruncate64 results in an >unresolved symbol. You don't use ftruncate64. You use ftruncate. Cygwin is 64 bit by default. >In fact based on those messages, I inserted the following code in my >program as a workaround for a truncate64() function: How about referencing these messages so we'd have some clue as to what you're talking about? cgf -- 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/