From 8238590c1dee40229ce987c2e855fc868fa923eb Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 2 Dec 2014 20:47:30 +0000 Subject: [PATCH] Alias sys_stime to sys_time Since parsers for stime and time syscalls are identical, replace sys_stime with an alias to sys_time. * linux/dummy.h (sys_stime): Alias to sys_time. * linux/syscall.h (sys_stime): Remove. * time.c (sys_stime): Remove. --- linux/dummy.h | 1 + linux/syscall.h | 1 - time.c | 9 --------- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/linux/dummy.h b/linux/dummy.h index 7a8b17ca..bf589ae0 100644 --- a/linux/dummy.h +++ b/linux/dummy.h @@ -83,6 +83,7 @@ #define sys_setgid sys_setuid #define sys_setregid sys_setreuid #define sys_setresgid sys_setresuid +#define sys_stime sys_time #define sys_swapoff sys_chdir #define sys_symlink sys_link #define sys_syncfs sys_close diff --git a/linux/syscall.h b/linux/syscall.h index 47c7a508..88d42bd9 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -275,7 +275,6 @@ int sys_stat(); int sys_stat64(); int sys_statfs(); int sys_statfs64(); -int sys_stime(); int sys_swapon(); int sys_symlinkat(); int sys_sync_file_range(); diff --git a/time.c b/time.c index 1ad90d9a..58d46280 100644 --- a/time.c +++ b/time.c @@ -167,15 +167,6 @@ sys_time(struct tcb *tcp) return 0; } -int -sys_stime(struct tcb *tcp) -{ - if (exiting(tcp)) { - printnum(tcp, tcp->u_arg[0], "%ld"); - } - return 0; -} - int sys_gettimeofday(struct tcb *tcp) {