]> granicus.if.org Git - strace/commitdiff
use asm/sysmips.h and linux/utsname.h if they exist
authorWichert Akkerman <wichert@deephackmode.org>
Sat, 7 Apr 2001 21:37:12 +0000 (21:37 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Sat, 7 Apr 2001 21:37:12 +0000 (21:37 +0000)
fix some silly typos in mips sections

ChangeLog
configure.in
linux/syscall.h
system.c

index ac4ff0aebff930ce63a4350b18bd8bce344474ac..3dabbadd90feb89f03eeeeec6c30f1b7ece2b7db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-07  Wichert Akkerman <wakkerma@debian.org>
+
+  * configure.in: test for asm/sysmips.h and linux/utsname.h
+  * linux/syscall.h: fix a typo for sys_sysmips
+  * system.c: include asm/sysmips.h and linux/utsname.h if they exist,
+    fix typo
+
 2001-03-31  Wichert Akkerman <wakkerma@debian.org>
 
   * linux/mips/ioctlent.h: updated using new Linux ioctl setup
index 4baf06f0533518c322087aec73b42cc5020bc769..f4425a85c2668491bfda7736e8973bac8888fcbf 100644 (file)
@@ -163,7 +163,7 @@ if test x$OPSYS != xLINUX; then
 AC_CHECK_LIB(nsl, main)
 fi
 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop if_indextoname)
-AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h)
+AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h)
 AC_DECL_SYS_ERRLIST
 AC_DECL_SYS_SIGLIST
 AC_DECL__SYS_SIGLIST
index 99b29951c0744636bc3f641bdff0511a002aa460..8efa8ae76a5f16a72259a0321474cf1ef7d7df9c 100644 (file)
@@ -134,7 +134,7 @@ int sys_osf_utimes();
 #define SYS_recvmsg            (SYS_socket_subcall + 17)
 
 #define SYS_socket_nsubcalls   18
-#endif /* !(ALPHA || IA64 || MIPS) */
+#endif /* !(ALPHA || IA64 || MIPS || HPPA) */
 
 /* sys_ipc subcalls */
 
@@ -161,7 +161,7 @@ int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
 #define SYS_shmctl             (SYS_ipc_subcall + 24)
 
 #define SYS_ipc_nsubcalls      25
-#endif /* !(ALPHA || IA64 || MIPS) */
+#endif /* !(ALPHA || IA64 || MIPS || HPPA) */
 
 #if defined(ALPHA) || defined(IA64)
 int sys_getpagesize();
@@ -176,7 +176,7 @@ int sys_getpmsg(), sys_putpmsg();   /* STREAMS stuff */
 #endif
 
 #ifdef MIPS
-int sys_sysmips()
+int sys_sysmips();
 #endif
 
 int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes();
index 89723bef33d21099bab81ad3a10af8b8f6ed90c0..48d06e286fb2b48737c0904dc025492ac596ce16 100644 (file)
--- a/system.c
+++ b/system.c
@@ -68,6 +68,14 @@ struct pt_regs;
 #include <asm/cachectl.h>
 #endif
 
+#ifdef HAVE_LINUX_USTNAME_H
+#include <linux/utsname.h>
+#endif
+
+#ifdef HAVE_ASM_SYSMIPS_H
+#include <asm/sysmips.h>
+#endif
+
 #include <linux/sysctl.h>
 
 static struct xlat mount_flags[] = {
@@ -2004,7 +2012,11 @@ struct tcb *tcp;
 
 #ifdef MIPS
 
-static struct xlat_sysmips[] = {
+#ifndef __NEW_UTS_LEN
+#define __NEW_UTS_LEN 64
+#endif
+
+static struct xlat xlat_sysmips[] = {
        { SETNAME,              "SETNAME"       },
        { FLUSH_CACHE,          "FLUSH_CACHE"   },
        { MIPS_FIXADE,          "MIPS_FIXADE"   },