]> granicus.if.org Git - strace/commitdiff
Alias sys_stime to sys_time
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Dec 2014 20:47:30 +0000 (20:47 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Dec 2014 20:47:30 +0000 (20:47 +0000)
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
linux/syscall.h
time.c

index 7a8b17caf9282a19eb6d7062c73f7d4b85e9ffa2..bf589ae094b42292f235cac06bd4f5d364b7a53c 100644 (file)
@@ -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
index 47c7a5080adc250b75a537bb8246b8be5518dcfc..88d42bd91299ab48524cd8d050d3bb4b530ede0d 100644 (file)
@@ -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 1ad90d9ad7ddba193583aa28356f5ce1408d168d..58d46280aa392dc18e7ea349f05a1256a77423f6 100644 (file)
--- 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)
 {