101 lines
2.6 KiB
Text
101 lines
2.6 KiB
Text
$NetBSD: patch-bb,v 1.1 2000/10/11 01:26:33 dmcmahill Exp $
|
|
|
|
add machine config file for mipsel machines
|
|
|
|
--- /dev/null Tue Oct 10 21:01:06 2000
|
|
+++ conf/m-mipsel.h Tue Oct 10 21:21:12 2000
|
|
@@ -0,0 +1,94 @@
|
|
+
|
|
+/************** Machine (and compiler) dependent definitions. **************
|
|
+ *
|
|
+ * Define appropriate types for the following ranges of integer
|
|
+ * variables. These are processor & compiler dependent, but the
|
|
+ * distributed definitions will probably work on most systems.
|
|
+ */
|
|
+
|
|
+
|
|
+
|
|
+/* MACHINE TYPE DEFINED TYPE VALUE RANGE */
|
|
+
|
|
+typedef unsigned char int8; /* 0 .. 255 */
|
|
+typedef short int16; /* -10,000 .. 10,000 */
|
|
+typedef int int32; /* -100,000 .. 100,000 */
|
|
+typedef unsigned int uint32; /* 0 .. 2^31-1 */
|
|
+
|
|
+
|
|
+/*
|
|
+ * Define NO_VARARGS if the varargs feature is not available.
|
|
+ *
|
|
+ * Also define NO_VARARGS if the vprintf/vsprintf routines are not
|
|
+ * available (however, this will only by safe on some machines, like
|
|
+ * the VAX).
|
|
+ *
|
|
+ * Defining NO_VARARGS in the m- file should only be done for
|
|
+ * architectures which does not support it in general, or where
|
|
+ * a majority of the systems available on that architecture
|
|
+ * doesn't have it. Otherwise, it should be defined in the
|
|
+ * s- file, because this is primarily OS dependent.
|
|
+ *
|
|
+ * NO_VARARGS can be overruled by defining HAVE_VARARGS in the s-
|
|
+ * file.
|
|
+ */
|
|
+
|
|
+/* #define NO_VARARGS /* unless HAVE_VARARGS */
|
|
+
|
|
+/*
|
|
+ * Define STRCSPN if the strcspn() function is not available.
|
|
+ */
|
|
+
|
|
+/* #define STRCSPN /* */
|
|
+
|
|
+/*
|
|
+ * Define NO_SIGINTERRUPT on BSD based systems which don't have
|
|
+ * a siginterrupt() function, but provides an SV_INTERRUPT flag
|
|
+ * in <signal.h>.
|
|
+ */
|
|
+
|
|
+/* #define NO_SIGINTERRUPT /* */
|
|
+
|
|
+
|
|
+#ifdef NETWORK_DATABASE
|
|
+
|
|
+/*
|
|
+ * Define NETWORK_BYTE_ORDER if the machine's int32's are
|
|
+ * already in network byte order, i.e. m68k based.
|
|
+ */
|
|
+#include <sys/types.h>
|
|
+#include <machine/endian.h>
|
|
+
|
|
+#if BYTE_ORDER == BIG_ENDIAN
|
|
+#define NETWORK_BYTE_ORDER /* */
|
|
+#endif
|
|
+
|
|
+/*
|
|
+ * OTHERWISE provide the functions/macros ntohl/htonl to
|
|
+ * convert longs from and to network byte order
|
|
+ */
|
|
+
|
|
+#ifndef NETWORK_BYTE_ORDER
|
|
+
|
|
+/*
|
|
+ * Include appropriate files or define macroes or functions (include them
|
|
+ * in data.c) to convert longs and shorts to and from network byte order.
|
|
+ */
|
|
+
|
|
+/*
|
|
+ * This will work on most BSD based systems...
|
|
+ */
|
|
+
|
|
+#include <netinet/in.h>
|
|
+
|
|
+/*
|
|
+ * Otherwise, define something appropriate below
|
|
+ */
|
|
+
|
|
+/* NetBSD has these in <netinet/in.h>
|
|
+/*#define htonl(l) ... *//* host long to network long */
|
|
+/*#define ntohl(l) ... *//* network long to host long */
|
|
+
|
|
+#endif /* not NETWORK BYTE ORDER */
|
|
+
|
|
+#endif /* NETWORK DATABASE */
|