summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-bb
blob: b7c574556a14318c99d1a3f82df18a465c757e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
$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 */