POSIX__RTEMS

Joel Sherrill joel.sherrill at OARcorp.com
Fri Dec 5 12:08:47 UTC 2003


sashti srinivasan wrote:

>Hello All,
>
>  I want to port many unix applications like, mail
>client, gui toolkit, web browser, etc., available in
>open source.  Towards this goal, I want to try a small
>posix thread program in RTEMS.  The same code works
>well in linux, but in RTEMS(over leon), pthread_create
>fails(Non zero return value).  Please help me.
>
>   Along with this, please give some pointers
>regarding wherefrom posix examples can be obtained to
>run with RTEMS over LEON.
>
>  
>
RTEMS has a different view of resource usage control than Linux.  You
have to configure the maximum number of each object type you will use.
You need to look for an include of confdefs.h and make you define
the appropriate number of each object type required.  Here is an
example from c/src/tests/psxtests/psx01.

/* configuration information */

#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER

#define CONFIGURE_MAXIMUM_POSIX_THREADS     2

#define CONFIGURE_POSIX_INIT_THREAD_TABLE

#include <confdefs.h>

See 
http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.6.0pre5/share/rtems/html/c_user/c_user00375.html
for all the details.

>With Regards
>Srinivasan
>
>__________________________________
>Do you Yahoo!?
>Free Pop-Up Blocker - Get it now
>http://companion.yahoo.com/
>  
>






More information about the users mailing list