1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

native/syscalls: rename real_clock_gettime to clock_gettime

This commit is contained in:
Teufelchen1 2023-04-17 15:01:49 +02:00
parent 1961274705
commit 10cada1b8d
3 changed files with 1 additions and 12 deletions

View File

@ -148,8 +148,6 @@ extern mode_t (*real_umask)(mode_t cmask);
extern ssize_t (*real_writev)(int fildes, const struct iovec *iov, int iovcnt);
extern ssize_t (*real_send)(int sockfd, const void *buf, size_t len, int flags);
extern int (*real_clock_gettime)(clockid_t clk_id, struct timespec *tp);
/**
* data structures
*/

View File

@ -204,7 +204,7 @@ unsigned int timer_read(tim_t dev)
_native_syscall_enter();
if (real_clock_gettime(CLOCK_MONOTONIC, &t) == -1) {
if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {
err(EXIT_FAILURE, "timer_read: clock_gettime");
}

View File

@ -106,11 +106,6 @@ mode_t (*real_umask)(mode_t cmask);
ssize_t (*real_writev)(int fildes, const struct iovec *iov, int iovcnt);
ssize_t (*real_send)(int sockfd, const void *buf, size_t len, int flags);
#ifdef __MACH__
#else
int (*real_clock_gettime)(clockid_t clk_id, struct timespec *tp);
#endif
void _native_syscall_enter(void)
{
_native_in_syscall++;
@ -553,8 +548,4 @@ void _native_init_syscalls(void)
*(void **)(&real_ftell) = dlsym(RTLD_NEXT, "ftell");
*(void **)(&real_fputc) = dlsym(RTLD_NEXT, "fputc");
*(void **)(&real_fgetc) = dlsym(RTLD_NEXT, "fgetc");
#ifdef __MACH__
#else
*(void **)(&real_clock_gettime) = dlsym(RTLD_NEXT, "clock_gettime");
#endif
}