sem_timedwait error

Aitor.Viana.Sanchez at Aitor.Viana.Sanchez at
Tue May 15 15:12:00 UTC 2007


i am working with rtems 4.6 over LEON2 architecture. I got a problem with 
the sem_timedwait POSIX function. This function has the next declaration: 

int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict 

the problem is that the abs_timeout must have the field tv_nsec cleared 
(set to 0x0) otherwise the function is not executed correctly. I think 
this is a bug in the POSIX API and I guess it would also affect other 
Moreover, the problem is considerable for real-time systems because of the 
lost of precision.

Any idea ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list