5 #ifdef HAVE_LINUX_UTSNAME_H
6 # include <linux/utsname.h>
8 #ifdef HAVE_ASM_SYSMIPS_H
9 # include <asm/sysmips.h>
13 # define __NEW_UTS_LEN 64
16 #include "xlat/sysmips_operations.h"
18 int sys_sysmips(struct tcb *tcp)
21 printxval(sysmips_operations, tcp->u_arg[0], "???");
23 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
24 } else if (tcp->u_arg[0] == SETNAME) {
25 char nodename[__NEW_UTS_LEN + 1];
26 if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1), nodename) < 0)
27 tprintf(", %#lx", tcp->u_arg[1]);
29 tprintf(", \"%.*s\"", (int)(__NEW_UTS_LEN + 1), nodename);
30 } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
31 tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
32 } else if (tcp->u_arg[0] == MIPS_FIXADE) {
33 tprintf(", 0x%lx", tcp->u_arg[1]);
35 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);