From: Dmitry V. Levin Date: Tue, 2 Dec 2014 21:42:34 +0000 (+0000) Subject: Alias sys_setdomainname to sys_sethostname X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=907df1e1576ce31e9216335c9ee35cae8f89beb5;p=platform%2Fupstream%2Fstrace.git 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. --- 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) {