From 907df1e1576ce31e9216335c9ee35cae8f89beb5 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 2 Dec 2014 21:42:34 +0000 Subject: [PATCH] Alias sys_setdomainname to sys_sethostname Since parsers for setdomainname and sethostname syscalls are identical, replace sys_setdomainname with an alias to sys_sethostname. * linux/dummy.h (sys_setdomainname): Alias to sys_sethostname. * linux/syscall.h (sys_setdomainname): Remove. * process.c (sys_setdomainname): Remove. --- linux/dummy.h | 1 + linux/syscall.h | 1 - process.c | 10 ---------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/linux/dummy.h b/linux/dummy.h index 9d1faf1b..fb607656 100644 --- a/linux/dummy.h +++ b/linux/dummy.h @@ -80,6 +80,7 @@ #define sys_rmdir sys_chdir #define sys_sched_get_priority_max sys_sched_get_priority_min #define sys_set_robust_list sys_munmap +#define sys_setdomainname sys_sethostname #define sys_setfsgid sys_setfsuid #define sys_setgid sys_setuid #define sys_setregid sys_setreuid diff --git a/linux/syscall.h b/linux/syscall.h index b7af6c5d..f4951cf3 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -235,7 +235,6 @@ int sys_sendmsg(); int sys_sendto(); int sys_set_mempolicy(); int sys_set_thread_area(); -int sys_setdomainname(); int sys_setfsuid(); int sys_setgroups(); int sys_setgroups32(); diff --git a/process.c b/process.c index e465319e..afb86de9 100644 --- a/process.c +++ b/process.c @@ -240,16 +240,6 @@ sys_gethostname(struct tcb *tcp) } #endif -int -sys_setdomainname(struct tcb *tcp) -{ - if (entering(tcp)) { - printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]); - tprintf(", %lu", tcp->u_arg[1]); - } - return 0; -} - int sys_exit(struct tcb *tcp) { -- 2.40.0