Re: PATCH: Implementation of functions in netdb.h

2002-12-05 Thread Christopher Faylor
On Thu, Dec 05, 2002 at 11:30:00PM +1300, Craig McGeachie wrote: >On 5 Dec 2002 at 23:22, Craig McGeachie wrote: >> - 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 glo

Re: PATCH: Implementation of functions in netdb.h

2002-12-05 Thread Craig McGeachie
On 5 Dec 2002 at 23:22, Craig McGeachie wrote: > - 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 Actua

Re: PATCH: Implementation of functions in netdb.h

2002-12-05 Thread Craig McGeachie
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 outrageous

Re: PATCH: Implementation of functions in netdb.h

2002-12-04 Thread Christopher Faylor
On Wed, Dec 04, 2002 at 01:55:49PM +0100, Corinna Vinschen wrote: >On Wed, Dec 04, 2002 at 10:44:40PM +1300, Craig McGeachie wrote: >>N.B. This routine relies on side effects due to the nature of >>strtok(). strtok() initially takes a char * pointing to the start of a >>line, and then NULL to ind

Re: PATCH: Implementation of functions in netdb.h

2002-12-04 Thread Corinna Vinschen
Hi Craig, On Wed, Dec 04, 2002 at 10:44:40PM +1300, Craig McGeachie wrote: > N.B. This routine relies on side effects due to the nature of > strtok(). strtok() initially takes a char * pointing to the start of > a line, and then NULL to indicate continued processing. strtok() does > not provide

Re: PATCH: Implementation of functions in netdb.h

2002-12-04 Thread Craig McGeachie
2002-11-19 Craig McGeachie <[EMAIL PROTECTED]> * netdb.cc (open_system_file, get_entire_line, get_alias_list) (open_services_file, parse_services_line, free_servent) (cygwin_setservent, cygwin_getservent, cygwin_endservent) (open_protocol_file, parse_protocol_line, free_protoent) (cygwin_setpr

Re: PATCH: Implementation of functions in netdb.h

2002-12-02 Thread Christopher Faylor
On Tue, Nov 19, 2002 at 02:28:41PM +1300, Craig McGeachie wrote: >On 18 Nov 2002 at 20:24, Christopher Faylor wrote: >> The sources in the release need the *CVS* version of w32api. See? Problems >> already. > >Indeed. Problems. I'll see what I can do to get CVS read access. FYI, we've received

Re: PATCH: Implementation of functions in netdb.h

2002-11-18 Thread Craig McGeachie
On 18 Nov 2002 at 20:24, Christopher Faylor wrote: > The sources in the release need the *CVS* version of w32api. See? Problems > already. Indeed. Problems. I'll see what I can do to get CVS read access. +- Craig McGeachie | #inc

Re: PATCH: Implementation of functions in netdb.h

2002-11-18 Thread Christopher Faylor
On Tue, Nov 19, 2002 at 02:15:50PM +1300, Craig McGeachie wrote: >On 18 Nov 2002 at 17:57, Christopher Faylor wrote: >> Why? > >I am looking for house and job, and staying with a friend, who runs a >small LAN, shares the dialup connection, and is sufficiently paranoid >to run a firewall setup wit

Re: PATCH: Implementation of functions in netdb.h

2002-11-18 Thread Craig McGeachie
On 18 Nov 2002 at 17:57, Christopher Faylor wrote: > Why? I am looking for house and job, and staying with a friend, who runs a small LAN, shares the dialup connection, and is sufficiently paranoid to run a firewall setup with mail and HTTP relaying (amongst others) - no exceptions. > but I wi

Re: PATCH: Implementation of functions in netdb.h

2002-11-18 Thread Christopher Faylor
On Tue, Nov 19, 2002 at 10:26:05AM +1300, Craig McGeachie wrote: Content-Description: Mail message body >This is an implementation of [set|get|end][serv|proto]ent functions as >defined in netdb.h. It was written primarily so I could port the DHCP >software from ISC to Cygwin. > >Firstly, this is a

PATCH: Implementation of functions in netdb.h

2002-11-18 Thread Craig McGeachie
This is an implementation of [set|get|end][serv|proto]ent functions as defined in netdb.h. It was written primarily so I could port the DHCP software from ISC to Cygwin. Firstly, this is a larger than trivial submission, I suppose I will have fill in a standard assignment form. However, I thoug