This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin/newlib types patchs
On Thu, Mar 22, 2001 at 08:16:57AM +1100, Robert Collins wrote:
>Well we can't turn on _POSIX_THREADS. And I don't think we should...
>a) I've read enough of the spec now to say fairly confidently that
>cygwin will not be conformant for a very long time. (Setting the stack
>address, setting a guard buffer for the stack...). So turning on
>_POSIX_THREADS will be misleading. Autoconf feature tests find all the
>functions quite well.
>b) the newlib _POSIX_THREADS types are broken IMO. They are reasonable
>structures and so forth but for userland includes they should be opaque
>to the user, and not a struct but rather a struct pointer to allow
>behind the scenes changes without breaking the ABI. (better yet, a void
>* for real opaqueness).
>c) the newlib includes have things in weird places- the pthreads
>#defines should be in pthreads.h not sys/types.
Ok. I didn't know this. I wonder how much should be handled by fixing
newlib, though? If there are changes that make things more conformant
then they should go in newlib. I am sure that the newlib maintainers
would like to fix things if they're out of whack.