Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3F4A8773.2090102@redhat.com>
Date: Mon, 25 Aug 2003 18:02:27 -0400
From: "J. Johnston" <jjohnstn@redhat.com>
Organization: Red Hat Inc.
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Corinna Vinschen <vinschen@redhat.com>
Cc: cygwin@cygwin.com, newlib@sources.redhat.com
Subject: Re: How to use __DYNAMIC_REENT__ correctly in multithreaded  applications?
References: <3F40EC4D.30704@gmx.net> <3F4134BF.826C3690@redhat.com> <3F41CF80.1030909@gmx.net> <3F466995.9000904@redhat.com> <20030822193432.GV7858@cygbert.vinschen.de> <3F4676A8.30904@redhat.com> <20030822202927.GY7858@cygbert.vinschen.de> <3F4A5483.20306@redhat.com> <20030825191117.GO7858@cygbert.vinschen.de>
In-Reply-To: <20030825191117.GO7858@cygbert.vinschen.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit



Corinna Vinschen wrote:
> 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.
> 

I agree.

> Corinna
> 

If you are willing to make the change on the Cygwin side, let me know and I will change the
newlib code.

-- Jeff J.


--
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/

