mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:31:51 +08:00
Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t
Squashed commit of the following:
sched: Rename all use of system_t to clock_t.
syscall: Rename all use of system_t to clock_t.
net: Rename all use of system_t to clock_t.
libs: Rename all use of system_t to clock_t.
fs: Rename all use of system_t to clock_t.
drivers: Rename all use of system_t to clock_t.
arch: Rename all use of system_t to clock_t.
include: Remove definition of systime_t; rename all use of system_t to clock_t.
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
|
||||
{
|
||||
FAR struct posix_timer_s *timer = (FAR struct posix_timer_s *)timerid;
|
||||
ssystime_t ticks;
|
||||
sclock_t ticks;
|
||||
|
||||
if (!timer || !value)
|
||||
{
|
||||
|
||||
@@ -305,7 +305,7 @@ int timer_settime(timer_t timerid, int flags,
|
||||
{
|
||||
FAR struct posix_timer_s *timer = (FAR struct posix_timer_s *)timerid;
|
||||
irqstate_t intflags;
|
||||
ssystime_t delay;
|
||||
sclock_t delay;
|
||||
int ret = OK;
|
||||
|
||||
/* Some sanity checks */
|
||||
@@ -335,7 +335,7 @@ int timer_settime(timer_t timerid, int flags,
|
||||
{
|
||||
(void)clock_time2ticks(&value->it_interval, &delay);
|
||||
|
||||
/* REVISIT: Should pt_delay be ssystime_t? */
|
||||
/* REVISIT: Should pt_delay be sclock_t? */
|
||||
|
||||
timer->pt_delay = (int)delay;
|
||||
}
|
||||
@@ -384,8 +384,8 @@ int timer_settime(timer_t timerid, int flags,
|
||||
|
||||
if (delay > 0)
|
||||
{
|
||||
/* REVISIT: Should pt_last be ssystime_t? Should wd_start delay be
|
||||
* ssystime_t?
|
||||
/* REVISIT: Should pt_last be sclock_t? Should wd_start delay be
|
||||
* sclock_t?
|
||||
*/
|
||||
|
||||
timer->pt_last = delay;
|
||||
|
||||
Reference in New Issue
Block a user