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, 25 Aug 2003 21:11:18 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com, newlib AT sources DOT redhat DOT com Subject: Re: How to use __DYNAMIC_REENT__ correctly in multithreaded applications? Message-ID: <20030825191117.GO7858@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com, newlib AT sources DOT redhat DOT com References: <3F40EC4D DOT 30704 AT gmx DOT net> <3F4134BF DOT 826C3690 AT redhat DOT com> <3F41CF80 DOT 1030909 AT gmx DOT net> <3F466995 DOT 9000904 AT redhat DOT com> <20030822193432 DOT GV7858 AT cygbert DOT vinschen DOT de> <3F4676A8 DOT 30904 AT redhat DOT com> <20030822202927 DOT GY7858 AT cygbert DOT vinschen DOT de> <3F4A5483 DOT 20306 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4A5483.20306@redhat.com> User-Agent: Mutt/1.4.1i On Mon, Aug 25, 2003 at 02:25:07PM -0400, J. Johnston wrote: > Corinna Vinschen wrote: > >Cygwin has a struct __stat64. We could also define a struct stat64 > >but this would be contrary to the effort to handle the new structures > >transparent. struct __stat64 is struct stat from the applications > >point of view. > > Where in particular? I have tried this as well. Having it defined as > empty is of no help. > The compiler needs to know its size and access one of the fields. > > With struct __stat64 st; > > /home/jjohnstn/sourceware/src/newlib/libc/stdio64/fseeko64.c: In function > `_fseeko64_r': > /home/jjohnstn/sourceware/src/newlib/libc/stdio64/fseeko64.c:112: storage > size of `st' isn't known struct __stat64 is guarded by an #ifdef __INSIDE_CYGWIN__. You must either #define __INSIDE_CYGWIN__ or winsup/cygwin/include/cygwin/stat.h must change to #if defined (__INSIDE_CYGWIN__) || defined (_COMPILING_NEWLIB) I guess the latter is the better approach. Corinna -- Corinna Vinschen Cygwin Developer 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/