This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Re: pthread -- Corinna?


----- Original Message -----
From: "Corinna Vinschen" <cygwin-patches@cygwin.com>
To: "cygpat" <cygwin-patches@cygwin.com>; <cygwin-xfree@cygwin.com>
Sent: Tuesday, April 17, 2001 10:05 PM
Subject: Re: [PATCH] Re: pthread -- Corinna?


> On Tue, Apr 17, 2001 at 08:30:11PM +1000, Robert Collins wrote:
> > From: "Corinna Vinschen" <cygwin-patches@cygwin.com>
> When I changed the code in passwd.cc and grp.cc once, I was annoyed
> about the usage of fopen in these internal functions. However, I
> didn't change it due to the usage of fgets(). I'm pretty sure
> it would be better to use CreateFile/ReadFile/CloseHandle in
> read_etc_...() than high-level libc functions. This would drop the
> need for the ..._sem variables once and for all. No open(), no
> ntsec, no recursion. It only would have to care for line endings
> by itself.
>

Sounds good to me. I'll bow out of this, my main goal was to get a
thread safe _r set of functions, and as the recursion issue is
separate...

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]