<br><font size=3>Hi,<br>
<br>
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:
<br>
</font><font size=3><tt><br>
int sem_timedwait(sem_t *restrict <i>sem</i>, const struct timespec *restrict
<i>abs_timeout</i>);<br>
</tt></font><font size=3><br>
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 platforms.
<br>
Moreover, the problem is considerable for real-time systems because of
the lost of precision.<br>
<br>
Any idea ?<br>
<br>
<br>
Cheers,<br>
 <br>
Aitor</font><font size=2 face="sans-serif"><br>
</font>