[okl4-developer] Some questions on the OK Linux POSIX support

Geoffrey Lee glee at ok-labs.com
Wed Nov 19 14:19:17 EST 2008


On Tue, Nov 18, 2008 at 10:58:25PM +0100, Hugues Balp wrote:
> 
>        Hi all,
> 
> 
> when looking at the "posix" example which is proposed in OKL4, I don't 
> see any POSIX call in it.
> 
> Indeed this is just a printf "Hello World" as you can see in the source 
> file $OKL4_ROOT_DIR/libs/posix/src/hello.c file.
> 
> #include <hello.h>
> #include <stdio.h>
> int
> hello_world (void)
> {
>     printf("Hello world! from POSIX land\n");
>     return 0;
> }
> 
> and when looking at the different source files of the posix support a 
> lot of UNIMPLEMENTED are written...

Hi Hugues - the "Hello world" example isn't meant to test any 
POSIX functionality.  It simply means that it is built with
the POSIX environment.  You'll probably find that the crt0
of the POSIX-based hello world contains things such as 
pthread initialization that are specific to POSIX on OKL4.

Full POSIX support is incomplete, however, we do have some 
of the pthread API there, and whatever libc bits.  The UNIMPLEMENTED()
is intended to aid us in finding what calls need to be implemented
when porting a POSIX application.

The present POSIX support implicitly relies on Iguana because
it internally makes references to it.

	-gl

> 
> So I ask me some questions on the current status of the POSIX support in 
> OK Linux and on its associated
> roadmap if one exists...
> 
> Is it just a question of time or are there also tricky technical 
> questions to resolve ?
> 
> Can we imagine a simple mapping for example between an OKL4 mutex and a 
> POSIX one ?

The POSIX mutexes have various options that you can set to change
the behavior, so it may require a bit more work than doing
a simple mapping for a complete implementation.


> 
>     Regards,
> 
>            Hugues Balp.


	-gl

> 
> 
> 
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
> 

-- 




More information about the Developer mailing list