delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/03/28/00:22:24

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 28 Mar 2001 00:22:37 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: [jjohnstn AT cygnus DOT com: Re: cygwin/newlib types patchs]
Message-ID: <20010328002237.A29855@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF79B1 AT itdomain002 DOT itdomain DOT net DOT au>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <EA18B9FA0FE4194AA2B4CDB91F73C0EF79B1@itdomain002.itdomain.net.au>; from robert.collins@itdomain.com.au on Wed, Mar 28, 2001 at 02:55:30PM +1000

On Wed, Mar 28, 2001 at 02:55:30PM +1000, Robert Collins wrote:
>> -----Original Message-----
>> From: Christopher Faylor [mailto:cgf AT redhat DOT com]
>> Sent: Wednesday, March 28, 2001 1:56 PM
>> To: Robert Collins
>> Cc: cygwin-developers AT cygwin DOT com
>> Subject: Re: [jjohnstn AT cygnus DOT com: Re: cygwin/newlib types patchs]
>> 
>> 
>> On Wed, Mar 28, 2001 at 01:46:15PM +1000, Robert Collins wrote:
>> >> What is cygwin-dependent?  Doesn't it make sense to keep 
>> everything in
>> >> one place, even if you have to "#ifdef __CYGWIN__"?
>> >
>> >No. The cygwin-classes and internals aren't newlib specific. The
>> >external interfaces are newlib-specific. As an example, if 
>> Mumit picks
>> >up his glibc port, the cygwin-classes will stay the same, 
>> but the glibc
>> >externals will be needed. Hopefully those external 
>> interfaces are posix
>> >standard and there's no difference :]
>> 
>> Can you give me an example?
>> 
>> cgf
>> (Btw, I've redirected this to cygwin-developers)
>> 
>
>Easily. We use 
>class pthread
>{
>...
>}
>
>within cygwin. That's accessible from several files, so it's in an
>include. The API uses pthread_t everywhere. When building cygwin we want
>typedef class pthread pthread_t;
>when building userland applications we want
>typedef void * pthread_t;
>
>If a different libc is ever used, the userland defines will (should) be
>the same - they are posix derived. The cygwin "kernel" defines should
>follow cygwin1.dll, not libc.

Ok.  I see that linux defines this type of thing in bits/pthreadtypes.h.
I guess our analogy is cygwin/pthreadtypes.h.  IIRC, you were going to
modify cygwin/types.h, which is ok.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019