From 1fea8c46c1af220d5397763c11ee20c44cc15b87 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Dec 2013 16:52:24 +0100 Subject: Add support for boottimebin and getbinuptime() --- rtemsbsd/include/rtems/bsd/sys/time.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rtemsbsd/include/rtems/bsd/sys') diff --git a/rtemsbsd/include/rtems/bsd/sys/time.h b/rtemsbsd/include/rtems/bsd/sys/time.h index 4eeff864..b6f45ba0 100644 --- a/rtemsbsd/include/rtems/bsd/sys/time.h +++ b/rtemsbsd/include/rtems/bsd/sys/time.h @@ -293,6 +293,7 @@ rtems_bsd_time_uptime(void) #define time_second rtems_bsd_time_second() #define time_uptime rtems_bsd_time_uptime() #endif /* __rtems__ */ +extern struct bintime boottimebin; extern struct timeval boottime; /* @@ -355,7 +356,15 @@ microtime(struct timeval *tvp) } #endif /* __rtems__ */ +#ifndef __rtems__ void getbinuptime(struct bintime *bt); +#else /* __rtems__ */ +static inline void +getbinuptime(struct bintime *bt) +{ + binuptime(bt); +} +#endif /* __rtems__ */ void getnanouptime(struct timespec *tsp); #ifndef __rtems__ void getmicrouptime(struct timeval *tvp); -- cgit v1.2.3