]> granicus.if.org Git - strace/commitdiff
Alias sys_setdomainname to sys_sethostname
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Dec 2014 21:42:34 +0000 (21:42 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Dec 2014 21:42:34 +0000 (21:42 +0000)
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
linux/syscall.h
process.c

index 9d1faf1b5cfa7676e475d7e4a8e6338346eb3b6c..fb6076569880ef2918a3588f1577b85fd914863e 100644 (file)
@@ -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
index b7af6c5d09ec1b27d314dc8d22a61e40cc494aa0..f4951cf38e9f9de72d66cfa2d1f8e251fc3356ed 100644 (file)
@@ -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();
index e465319e71210c335b6265f0a5f654c0c4994810..afb86de91df7d1e7f202987a6400c9681b9bbfc6 100644 (file)
--- 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)
 {