mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Remove clock_systimer32 and clock_systimer64. There is now only clock_systimer
This commit is contained in:
+1
-2
@@ -11,8 +11,7 @@
|
||||
"clock_getres","time.h","","int","clockid_t","struct timespec*"
|
||||
"clock_gettime","time.h","","int","clockid_t","struct timespec*"
|
||||
"clock_settime","time.h","","int","clockid_t","const struct timespec*"
|
||||
"clock_systimer32","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS) && !defined(CONFIG_SYSTEM_TIME64)","uint32_t"
|
||||
"clock_systimer64","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS) && defined(CONFIG_SYSTEM_TIME64)","uint64_t"
|
||||
"clock_systimer","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS)","systime_t"
|
||||
"close","unistd.h","CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0","int","int"
|
||||
"closedir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR DIR*"
|
||||
"connect","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","FAR const struct sockaddr*","socklen_t"
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* syscall/syscall_clock_systimer.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2014 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2012, 2014, 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -60,7 +60,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syscall_clock_systimer32/64
|
||||
* Name: syscall_clock_systimer
|
||||
*
|
||||
* Description:
|
||||
* In the kernel build, proxying for clock_systimer() must be handled
|
||||
@@ -74,14 +74,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
uint64_t syscall_clock_systimer64(void)
|
||||
systime_t syscall_clock_systimer(void)
|
||||
{
|
||||
return clock_systimer64();
|
||||
return clock_systime();
|
||||
}
|
||||
#else
|
||||
uint32_t syscall_clock_systimer32(void)
|
||||
{
|
||||
return clock_systimer32();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -99,11 +99,7 @@
|
||||
* have an address that can be included in the g_funclookup[] table.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
uint64_t syscall_clock_systimer64(void);
|
||||
#else
|
||||
uint32_t syscall_clock_systimer32(void);
|
||||
#endif
|
||||
systime_t syscall_clock_systimer(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -148,11 +148,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
* NuttX configuration.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer64, 0, STUB_clock_systimer64)
|
||||
#else
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer32, 0, STUB_clock_systimer32)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer, 0, STUB_clock_systimer)
|
||||
SYSCALL_LOOKUP(clock_getres, 2, STUB_clock_getres)
|
||||
SYSCALL_LOOKUP(clock_gettime, 2, STUB_clock_gettime)
|
||||
SYSCALL_LOOKUP(clock_settime, 2, STUB_clock_settime)
|
||||
|
||||
@@ -150,11 +150,7 @@ uintptr_t STUB_nanosleep(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
* NuttX configuration.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
uintptr_t STUB_clock_systimer64(int nbr);
|
||||
#else
|
||||
uintptr_t STUB_clock_systimer32(int nbr);
|
||||
#endif
|
||||
uintptr_t STUB_clock_systimer(int nbr);
|
||||
uintptr_t STUB_clock_getres(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_clock_gettime(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_clock_settime(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
|
||||
Reference in New Issue
Block a user