OpenAmiga (140/959)

From:Deryk Robosson
Date:3 Aug 2000 at 01:38:45
Subject:Re: AMIOPEN: pthread Emulation

Daniel Robbins wrote:
>
> On Wed, Aug 02, 2000 at 10:41:42PM +0100, Matthew J Fletcher wrote:
>
> > The question is this,.. POSIX.1 (as supported by Tao), does not
> > include any pthreads API calls (as far as i can tell), now tao say
> > they have a complete POSIX.1 emu and .4 in the works. So its the
> > pthreads stuff just well hidden, or are tao working on it, or is
> > it just non existant ?
>
> Oooh... pthreads! The elate kernel should have everything you need to
> implement all the pthreads calls, from what I read in the SDK manual.
> In fact, the elate kernel offers more powerful mechanisms than what
> are available from POSIX threads.
>
> Except I didn't read anything about creating a new thread, but I know
> that this is of course possible. POSIX threads is one of those nice
> pieces of C code that I wish intent already had.

Huh..that's odd. TAO state in their docs for vpcc that fork() will
never be supported properly.

>From /lang/cc/doc/vpcc.html:
-posix
Include externals compatible with POSIX standards but do not include
any Elate-specific externals which may be defined in the standard
includes.
Provided to stop any name clashes when porting. Some Posix
facilities e.g.
fork(), will never be supplied in a compatible way under Elate.

I've also noticed that fcntl() and lockf() aren't POSIX either. Some
ported code needs work when dealing with these.

Deryk

Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html