summaryrefslogtreecommitdiffstats
path: root/kernel/time/posix-timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/posix-timers.c')
-rw-r--r--kernel/time/posix-timers.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
index de79f85ae14f..29176635991f 100644
--- a/kernel/time/posix-timers.c
+++ b/kernel/time/posix-timers.c
@@ -730,8 +730,8 @@ SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id,
730 730
731#ifdef CONFIG_COMPAT_32BIT_TIME 731#ifdef CONFIG_COMPAT_32BIT_TIME
732 732
733COMPAT_SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id, 733SYSCALL_DEFINE2(timer_gettime32, timer_t, timer_id,
734 struct old_itimerspec32 __user *, setting) 734 struct old_itimerspec32 __user *, setting)
735{ 735{
736 struct itimerspec64 cur_setting; 736 struct itimerspec64 cur_setting;
737 737
@@ -903,9 +903,9 @@ SYSCALL_DEFINE4(timer_settime, timer_t, timer_id, int, flags,
903} 903}
904 904
905#ifdef CONFIG_COMPAT_32BIT_TIME 905#ifdef CONFIG_COMPAT_32BIT_TIME
906COMPAT_SYSCALL_DEFINE4(timer_settime, timer_t, timer_id, int, flags, 906SYSCALL_DEFINE4(timer_settime32, timer_t, timer_id, int, flags,
907 struct old_itimerspec32 __user *, new, 907 struct old_itimerspec32 __user *, new,
908 struct old_itimerspec32 __user *, old) 908 struct old_itimerspec32 __user *, old)
909{ 909{
910 struct itimerspec64 new_spec, old_spec; 910 struct itimerspec64 new_spec, old_spec;
911 struct itimerspec64 *rtn = old ? &old_spec : NULL; 911 struct itimerspec64 *rtn = old ? &old_spec : NULL;
@@ -1096,8 +1096,8 @@ SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock,
1096 1096
1097#ifdef CONFIG_COMPAT_32BIT_TIME 1097#ifdef CONFIG_COMPAT_32BIT_TIME
1098 1098
1099COMPAT_SYSCALL_DEFINE2(clock_settime, clockid_t, which_clock, 1099SYSCALL_DEFINE2(clock_settime32, clockid_t, which_clock,
1100 struct old_timespec32 __user *, tp) 1100 struct old_timespec32 __user *, tp)
1101{ 1101{
1102 const struct k_clock *kc = clockid_to_kclock(which_clock); 1102 const struct k_clock *kc = clockid_to_kclock(which_clock);
1103 struct timespec64 ts; 1103 struct timespec64 ts;
@@ -1111,8 +1111,8 @@ COMPAT_SYSCALL_DEFINE2(clock_settime, clockid_t, which_clock,
1111 return kc->clock_set(which_clock, &ts); 1111 return kc->clock_set(which_clock, &ts);
1112} 1112}
1113 1113
1114COMPAT_SYSCALL_DEFINE2(clock_gettime, clockid_t, which_clock, 1114SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock,
1115 struct old_timespec32 __user *, tp) 1115 struct old_timespec32 __user *, tp)
1116{ 1116{
1117 const struct k_clock *kc = clockid_to_kclock(which_clock); 1117 const struct k_clock *kc = clockid_to_kclock(which_clock);
1118 struct timespec64 ts; 1118 struct timespec64 ts;
@@ -1129,8 +1129,8 @@ COMPAT_SYSCALL_DEFINE2(clock_gettime, clockid_t, which_clock,
1129 return err; 1129 return err;
1130} 1130}
1131 1131
1132COMPAT_SYSCALL_DEFINE2(clock_adjtime, clockid_t, which_clock, 1132SYSCALL_DEFINE2(clock_adjtime32, clockid_t, which_clock,
1133 struct old_timex32 __user *, utp) 1133 struct old_timex32 __user *, utp)
1134{ 1134{
1135 struct __kernel_timex ktx; 1135 struct __kernel_timex ktx;
1136 int err; 1136 int err;
@@ -1147,8 +1147,8 @@ COMPAT_SYSCALL_DEFINE2(clock_adjtime, clockid_t, which_clock,
1147 return err; 1147 return err;
1148} 1148}
1149 1149
1150COMPAT_SYSCALL_DEFINE2(clock_getres, clockid_t, which_clock, 1150SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock,
1151 struct old_timespec32 __user *, tp) 1151 struct old_timespec32 __user *, tp)
1152{ 1152{
1153 const struct k_clock *kc = clockid_to_kclock(which_clock); 1153 const struct k_clock *kc = clockid_to_kclock(which_clock);
1154 struct timespec64 ts; 1154 struct timespec64 ts;
@@ -1204,9 +1204,9 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags,
1204 1204
1205#ifdef CONFIG_COMPAT_32BIT_TIME 1205#ifdef CONFIG_COMPAT_32BIT_TIME
1206 1206
1207COMPAT_SYSCALL_DEFINE4(clock_nanosleep, clockid_t, which_clock, int, flags, 1207SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags,
1208 struct old_timespec32 __user *, rqtp, 1208 struct old_timespec32 __user *, rqtp,
1209 struct old_timespec32 __user *, rmtp) 1209 struct old_timespec32 __user *, rmtp)
1210{ 1210{
1211 const struct k_clock *kc = clockid_to_kclock(which_clock); 1211 const struct k_clock *kc = clockid_to_kclock(which_clock);
1212 struct timespec64 t; 1212 struct timespec64 t;