This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: PATCH: Implementation of functions in netdb.h
- From: "Craig McGeachie" <slapdau at yahoo dot com dot au>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 05 Dec 2002 23:22:22 +1300
- Subject: Re: PATCH: Implementation of functions in netdb.h
- References: <20021204135549.D1140@cygbert.vinschen.de>
- Reply-to: cygwin-patches at cygwin dot com
On 4 Dec 2002 at 15:47, Christopher Faylor wrote:
> >please use strtok_r(). It helps to avoid clashes with the application
> >using strtok() as well.
Righto. Not a problem.
> It's not a simple job by any means but maybe the code in perthread.h
> will provide a clue.
It doesn't look outrageously hard. As I understand it, I should:
- declare a subclass of per_thread into perthread.h for
whatever data netdb.cc uses.
- declare a single global instance of this subclass in perthread.h
- define the global instance in dcrt0.cc
- add it to threadstuff in dcrt0.cc
- use the global instance, with its get and create methods, in
netdb.cc instead of the static varibles.
Have I missed something?
----------------+-------------------------------------------------
Craig McGeachie | #include <cheesy_tag.h>
+64(21)037-6917 | while (!inebriated) c2h5oh=(++bottle)->contents;
----------------+-------------------------------------------------