setitimer, getitimer() in rtems?

Gene Smith gds at
Fri Sep 5 14:37:07 UTC 2008

Joel Sherrill wrote:
> Gene Smith wrote:
>> Porting in some code that runs on linux, my last undefined link items
>> are setitimer and getitimer. I can't seem to find them in rtems (4.8.0)
>> except in the sys/time.h include file so it compiles. Saw some reference
>> to them in old mailing list threads that implied (or said?) that you
>> have to implement them using rtems native timer calls. Is this right?
> Since they use POSIX signals, you would implement them
> in the POSIX API (cpukit/posix) and implement them in terms
> of SuperCore timers.
> Why do you need these? And which of the three types
> you want/need?

Why: The function is in some existing 3rd party code I need to use for 
the project.
Which: Actually, the code only calls setitimer with parameter ITIMER_REAL.

Right now I am using rtems_timer_fire_after() with a callback function 
to do a similar thing.

>> Thanks,
>> -gene
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at

More information about the users mailing list