diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-12 11:17:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-12 11:17:23 -0600 |
commit | 0ba0ab508656c4046c7e00b0c6c36ce86d061660 (patch) | |
tree | a2677d520bd25df3e085783da8ffe97b46849225 | |
parent | 7881095dcc9ce16c67163cc3d9b8fb7c2adf4c66 (diff) | |
download | px4-nuttx-0ba0ab508656c4046c7e00b0c6c36ce86d061660.tar.gz px4-nuttx-0ba0ab508656c4046c7e00b0c6c36ce86d061660.tar.bz2 px4-nuttx-0ba0ab508656c4046c7e00b0c6c36ce86d061660.zip |
Update ChangeLog
-rwxr-xr-x | nuttx/ChangeLog | 7 | ||||
-rw-r--r-- | nuttx/libc/time/lib_settimeofday.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index c337f7977..9e5ad32f4 100755 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -9758,3 +9758,10 @@ Frank Sautter (2015-02-11). * configs/tm4c1294-launchpad: Add support for the TM4C1294 Launchpad. Contributed by Frank Sautter (2015-02-11). + * gettimeofday(): Move gettimeofdady() from sched/clock to libc/time. + Remove gettimeofday() from NuttX system calls. It is only a wrapper + around clock_settime() and does not need a trap. gettimeofday() is + no longer treated as a core OS interface (2015-02-12). + * settimeofday(): gettimeofday has been decrecated in POSIX 2008. + settimeofday() was never part of POSIX, but I decided to add it to + libc as well just for symmetry (2015-02-12). diff --git a/nuttx/libc/time/lib_settimeofday.c b/nuttx/libc/time/lib_settimeofday.c index bef088c38..459f6d083 100644 --- a/nuttx/libc/time/lib_settimeofday.c +++ b/nuttx/libc/time/lib_settimeofday.c @@ -85,7 +85,7 @@ int settimeofday(FAR const struct timeval *tv, FAR struct timezone *tz) ts.tv_sec = tv->tv_sec; ts.tv_nsec = tv->tv_usec * NSEC_PER_USEC; - + /* Let clock_settime do the work */ return clock_settime(CLOCK_REALTIME, &ts); |