return -1;
}
-#ifdef __ASSUME_TIME64_SYSCALLS
-# ifndef __NR_clock_settime64
-# define __NR_clock_settime64 __NR_clock_settime
-# endif
- return INLINE_SYSCALL_CALL (clock_settime64, clock_id, tp);
-#else
-# ifdef __NR_clock_settime64
+#ifndef __NR_clock_settime64
+# define __NR_clock_settime64 __NR_clock_settime
+#endif
int ret = INLINE_SYSCALL_CALL (clock_settime64, clock_id, tp);
+
+#ifndef __ASSUME_TIME64_SYSCALLS
if (ret == 0 || errno != ENOSYS)
return ret;
-# endif
+
if (! in_time_t_range (tp->tv_sec))
{
__set_errno (EOVERFLOW);
}
struct timespec ts32 = valid_timespec64_to_timespec (*tp);
- return INLINE_SYSCALL_CALL (clock_settime, clock_id, &ts32);
+ ret = INLINE_SYSCALL_CALL (clock_settime, clock_id, &ts32);
#endif
+
+ return ret;
}
#if __TIMESIZE != 64