mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
linux: timerfd_gettime minor cleanup
The __NR_timerfd_gettime64 is always defined. Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
@ -25,17 +25,16 @@
|
|||||||
int
|
int
|
||||||
__timerfd_gettime64 (int fd, struct __itimerspec64 *value)
|
__timerfd_gettime64 (int fd, struct __itimerspec64 *value)
|
||||||
{
|
{
|
||||||
#ifdef __ASSUME_TIME64_SYSCALLS
|
#ifndef __NR_timerfd_gettime64
|
||||||
# ifndef __NR_timerfd_gettime64
|
|
||||||
# define __NR_timerfd_gettime64 __NR_timerfd_gettime
|
# define __NR_timerfd_gettime64 __NR_timerfd_gettime
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __ASSUME_TIME64_SYSCALLS
|
||||||
return INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value);
|
return INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value);
|
||||||
#else
|
#else
|
||||||
# ifdef __NR_timerfd_gettime64
|
|
||||||
int ret = INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value);
|
int ret = INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value);
|
||||||
if (ret == 0 || errno != ENOSYS)
|
if (ret == 0 || errno != ENOSYS)
|
||||||
return ret;
|
return ret;
|
||||||
# endif
|
|
||||||
struct itimerspec its32;
|
struct itimerspec its32;
|
||||||
int retval = INLINE_SYSCALL_CALL (timerfd_gettime, fd, &its32);
|
int retval = INLINE_SYSCALL_CALL (timerfd_gettime, fd, &its32);
|
||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
|
Reference in New Issue
Block a user