More bugs

16 views
Skip to first unread message

rd...@iinet.net.au

unread,
Oct 31, 2012, 8:22:20 AM10/31/12
to rt-thre...@googlegroups.com
Hi,
 
RT-Thread 1.0.2
 
In clock_time.c, function clock_gettime
 
tp->tv_nsec = (_timevalue.tv_usec + (tick % RT_TICK_PER_SECOND) * NANOSECOND_PER_TICK) * 1000;
 
should read:
 
tp->tv_nsec = (_timevalue.tv_usec + ((tick % RT_TICK_PER_SECOND) * NANOSECOND_PER_TICK) / 1000) * 1000;
 
In syscalls.c, function libc_get_time
 
time->tv_nsec = (_timevalue.tv_usec + (tick % RT_TICK_PER_SECOND) * NANOSECOND_PER_TICK) * 1000;
 
should read:
time->tv_nsec = (_timevalue.tv_usec + ((tick % RT_TICK_PER_SECOND) * NANOSECOND_PER_TICK) / 1000) * 1000;
 
 
In syscalls.c, both versions of function _gettimeofday_r
 
__tp->tv_usec = tp.tv_nsec * 1000UL;
 
should read:
 
__tp->tv_usec = tp.tv_nsec / 1000UL;
 
Regards,
Rob
 
 
 

bernard

unread,
Oct 31, 2012, 9:27:16 AM10/31/12
to rt-thre...@googlegroups.com

All of them related with POSIX?

And rob,
Could I provide a developer ruler for you? Therefore you can submit patches in more convenient.


Regards
Bernard

在 2012-10-31 下午8:22, <rd...@iinet.net.au>写道:

rd...@iinet.net.au

unread,
Oct 31, 2012, 2:52:49 PM10/31/12
to rt-thre...@googlegroups.com
I think at least one of the functions mentioned was non POSIX.
 
A "developer ruler"? I'm not sure what you mean by that but if it makes it easier for me to contribute then sure.

bernard

unread,
Oct 31, 2012, 9:28:02 PM10/31/12
to rt-thre...@googlegroups.com

Oh, I mean developer role. 

2012/11/1 <rd...@iinet.net.au>

--
You received this message because you are subscribed to the Google
Groups "rt-thread-users" group.
To post to this group, send email to rt-thre...@googlegroups.com
To unsubscribe from this group, send email to
rt-thread-use...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages