+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
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
#define SYS_recvmsg (SYS_socket_subcall + 17)
#define SYS_socket_nsubcalls 18
-#endif /* !(ALPHA || IA64 || MIPS) */
+#endif /* !(ALPHA || IA64 || MIPS || HPPA) */
/* sys_ipc subcalls */
#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();
#endif
#ifdef MIPS
-int sys_sysmips()
+int sys_sysmips();
#endif
int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes();
#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[] = {
#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" },