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:
parent
1961274705
commit
10cada1b8d
@ -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_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 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
|
* data structures
|
||||||
*/
|
*/
|
||||||
|
@ -204,7 +204,7 @@ unsigned int timer_read(tim_t dev)
|
|||||||
|
|
||||||
_native_syscall_enter();
|
_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");
|
err(EXIT_FAILURE, "timer_read: clock_gettime");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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_writev)(int fildes, const struct iovec *iov, int iovcnt);
|
||||||
ssize_t (*real_send)(int sockfd, const void *buf, size_t len, int flags);
|
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)
|
void _native_syscall_enter(void)
|
||||||
{
|
{
|
||||||
_native_in_syscall++;
|
_native_in_syscall++;
|
||||||
@ -553,8 +548,4 @@ void _native_init_syscalls(void)
|
|||||||
*(void **)(&real_ftell) = dlsym(RTLD_NEXT, "ftell");
|
*(void **)(&real_ftell) = dlsym(RTLD_NEXT, "ftell");
|
||||||
*(void **)(&real_fputc) = dlsym(RTLD_NEXT, "fputc");
|
*(void **)(&real_fputc) = dlsym(RTLD_NEXT, "fputc");
|
||||||
*(void **)(&real_fgetc) = dlsym(RTLD_NEXT, "fgetc");
|
*(void **)(&real_fgetc) = dlsym(RTLD_NEXT, "fgetc");
|
||||||
#ifdef __MACH__
|
|
||||||
#else
|
|
||||||
*(void **)(&real_clock_gettime) = dlsym(RTLD_NEXT, "clock_gettime");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user