Alias a few more syscall printing functions

   text	   data	    bss	    dec	    hex	filename
 237384	    672	  19044	 257100	  3ec4c	strace.before
 236448	    672	  19044	 256164	  3e8a4	strace

* defs.h: Declare new functions printargs_lu(), printargs_ld()
which simply print syscall all args as unsigned or signed longs.
* desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it.
* linux/syscall.h: Remove declarations of the following functions:
sys_alarm, sys_getresgid, sys_getsid, sys_nice, sys_setgid, sys_setpgid,
sys_setpgrp, sys_setregid, sys_setresgid.
* process.c (sys_setgid): Delete this function: now aliased to sys_setuid().
(sys_getresgid): Delete this function: now aliased to sys_getresuid().
(sys_setregid): Delete this function: now aliased to sys_setreuid().
(sys_setresgid): Delete this function: now aliased to sys_setresuid().
(sys_setpgrp): Delete this function: now aliased to printargs_lu().
(sys_getsid): Likewise.
(sys_setpgid): Likewise.
(sys_alarm): Likewise.
(sys_getpgrp): Delete this function: was unused - was already shadowed
by a define in linux/dummy.h.
(sys_setsid): Likewise.
(sys_getpgid): Likewise.
* resource.c (sys_nice): Delete this function: now aliased to printargs_ld().
* linux/dummy.h: Define new aliases (see above for the list).
* syscall.c (printargs_lu): New function.
(printargs_ld): New function.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/linux/dummy.h b/linux/dummy.h
index 0def94c..26afbbc 100644
--- a/linux/dummy.h
+++ b/linux/dummy.h
@@ -75,9 +75,14 @@
 #define	sys_dup			sys_close
 #define	sys_fchdir		sys_close
 #define	sys_fdatasync		sys_close
-#define	sys_getegid		sys_getuid
 #define	sys_geteuid		sys_getuid
+#define	sys_getegid		sys_getuid
 #define	sys_getgid		sys_getuid
+#define	sys_getresgid		sys_getresuid
+#define	sys_setgid		sys_setuid
+#define	sys_setregid		sys_setreuid
+#define	sys_setresgid		sys_setresuid
+#define	sys_setfsgid		sys_setfsuid
 #define	sys_mlock		sys_munmap
 #define	sys_mq_unlink		sys_chdir
 #define	sys_munlock		sys_munmap
@@ -85,7 +90,6 @@
 #define	sys_rename		sys_link
 #define	sys_rmdir		sys_chdir
 #define	sys_sched_get_priority_max sys_sched_get_priority_min
-#define	sys_setfsgid		sys_setfsuid
 #define	sys_swapoff		sys_chdir
 #define	sys_swapon		sys_chdir
 #define	sys_symlink		sys_link
@@ -96,17 +100,16 @@
 
 /* printargs does the right thing */
 #define	sys_getpgid		printargs
-#define	sys_getpgrp		printargs
 #define	sys_getpid		printargs
 #define	sys_getppid		printargs
 #define	sys_gettid		printargs
+#define	sys_setsid		printargs
 #define	sys_idle		printargs
 #define	sys_inotify_init	printargs
 #define	sys_munlockall		printargs
 #define	sys_pause		printargs
 #define	sys_rt_sigreturn	printargs
 #define	sys_sched_yield		printargs
-#define	sys_setsid		printargs
 #define	sys_setup		printargs
 #define	sys_set_tid_address	printargs
 #define	sys_sync		printargs
@@ -114,6 +117,14 @@
 #define	sys_timer_getoverrun	printargs
 #define	sys_vhangup		printargs
 
+/* printargs_lu/ld does the right thing */
+#define	sys_getsid		printargs_lu
+#define	sys_getpgrp		printargs_lu
+#define	sys_setpgid		printargs_lu
+#define	sys_setpgrp		printargs_lu
+#define	sys_alarm		printargs_lu
+#define	sys_nice		printargs_ld
+
 /* unimplemented */
 #define	sys_afs_syscall		printargs
 #define	sys_break		printargs