This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: [dk: RE: Oh dear, pthreads and stdio still not mt-safe :-(]
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 8 Jan 2004 17:27:49 +0100
- Subject: Re: [dk: RE: Oh dear, pthreads and stdio still not mt-safe :-(]
- References: <20040107194532.GA17254@redhat.com> <3FFD7F9D.5040307@netscape.net>
- Reply-to: cygwin-developers at cygwin dot com
On Jan 8 11:04, Nicholas Wourms wrote:
> While we're on the subject, I was scanning newlib the other day and I
> spotted two functions of interest in libc/unix -- `pread' & `pwrite'.
> Unfortunately, we do not build in the unix dir, since most of our unistd
> functions are provided inside the Cygwin tree. Would anyone object if I
> submitted a patch to newlib which would allow Cygwin to build in that
> dir? The plan would be to add:
> if !defined(UNISTD_PROVIDED)
> to the other unix sourcefiles which provide functions we already have.
Does that make sense? pread and pwrite are the only functions in this
directory, which are not already implemented in Cygwin internally.
Isn't it easier to add our own pread and pwrite implementations to
Cygwin, which could directly access the underlying fhandler?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.