mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
syscall: clock_systimer() is no longer a system call. It has been replaced with the equivalent, standard interface clock() as the system call.
sched/clock: Move the implementation of clock() from libs/libc/time to sched/clock. This is necessary because it calls the (now) internal OS function clock_systimer. clock() is now accessed only via a system call in certain configuratins. libs/libc/wqueue: Replace calls to clock_systimer() with calls to the equivalent clock().
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
ystim****************************************************************************
|
||||
* include/sys/syscall.h
|
||||
* This file contains the system call numbers.
|
||||
*
|
||||
* Copyright (C) 2011-2017 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -237,7 +237,7 @@
|
||||
* NuttX configuration.
|
||||
*/
|
||||
|
||||
#define SYS_clock_systimer (__SYS_clock+0)
|
||||
#define SYS_clock (__SYS_clock+0)
|
||||
#define SYS_clock_getres (__SYS_clock+1)
|
||||
#define SYS_clock_gettime (__SYS_clock+2)
|
||||
#define SYS_clock_settime (__SYS_clock+3)
|
||||
|
||||
Reference in New Issue
Block a user