[CRIU] [PATCH] x86: syscall -- Drop redundant _sys_ part from definition

Pavel Emelyanov xemul at parallels.com
Tue Apr 7 04:52:04 PDT 2015


On 04/07/2015 12:25 PM, Cyrill Gorcunov wrote:
> Somehow _sys_ token sneaked into __NR term. Drop it off
> to be close to kernel's representation.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  arch/x86/syscall-x86-64.def | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/x86/syscall-x86-64.def b/arch/x86/syscall-x86-64.def
> index b793e8e1ef68..29afdf8008c4 100644
> --- a/arch/x86/syscall-x86-64.def
> +++ b/arch/x86/syscall-x86-64.def
> @@ -79,11 +79,11 @@ __NR_set_thread_area	205		sys_set_thread_area	(user_desc_t *info)
>  __NR_get_thread_area	211		sys_get_thread_area	(user_desc_t *info)
>  __NR_set_tid_address	218		sys_set_tid_address	(int *tid_addr)
>  __NR_restart_syscall	219		sys_restart_syscall	(void)
> -__NR_sys_timer_create	222		sys_timer_create	(clockid_t which_clock, struct sigevent *timer_event_spec, timer_t *created_timer_id)
> -__NR_sys_timer_settime	223		sys_timer_settime	(timer_t timer_id, int flags, const struct itimerspec *new_setting, struct itimerspec *old_setting)
> -__NR_sys_timer_gettime	224		sys_timer_gettime	(int timer_id, const struct itimerspec *setting)
> -__NR_sys_timer_getoverrun	225		sys_timer_getoverrun	(int timer_id)
> -__NR_sys_timer_delete	226		sys_timer_delete	(timer_t timer_id)
> +__NR_timer_create	222		sys_timer_create	(clockid_t which_clock, struct sigevent *timer_event_spec, timer_t *created_timer_id)
> +__NR_timer_settime	223		sys_timer_settime	(timer_t timer_id, int flags, const struct itimerspec *new_setting, struct itimerspec *old_setting)
> +__NR_timer_gettime	224		sys_timer_gettime	(int timer_id, const struct itimerspec *setting)
> +__NR_timer_getoverrun	225		sys_timer_getoverrun	(int timer_id)
> +__NR_timer_delete	226		sys_timer_delete	(timer_t timer_id)

Huh? How is this file used/compiled/parsed if the constant can be either?

>  __NR_clock_gettime	228		sys_clock_gettime	(const clockid_t which_clock, const struct timespec *tp)
>  __NR_exit_group		231		sys_exit_group		(int error_code)
>  __NR_io_setup		206		sys_io_setup		(unsigned nr_events, aio_context_t *ctx)
> 



More information about the CRIU mailing list