comparison src/m/next.h @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents 376386a54a3c
children 131b0175ea99
comparison
equal deleted inserted replaced
11:91ffe8bd52e4 12:bcdc7deadc19
33 33
34 /* XINT must explicitly sign-extend */ 34 /* XINT must explicitly sign-extend */
35 35
36 #define EXPLICIT_SIGN_EXTEND 36 #define EXPLICIT_SIGN_EXTEND
37 37
38 /* Data type of load average, as read out of kmem. */
39
40 #define LOAD_AVE_TYPE long
41
42 /* Convert that into an integer that is 100 for a load average of 1.0 */
43
44 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
45
46 /* Say that the text segment of a.out includes the header; 38 /* Say that the text segment of a.out includes the header;
47 the header actually occupies the first few bytes of the text segment 39 the header actually occupies the first few bytes of the text segment
48 and is counted in hdr.a_text. */ 40 and is counted in hdr.a_text. */
49 41
50 #define A_TEXT_OFFSET(HDR) sizeof (HDR) 42 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
51 43
52 /* Mask for address bits within a memory segment */ 44 /* Mask for address bits within a memory segment */
53 45
54 #define SEGSIZ 0x20000 46 #define SEGSIZ 0x20000
55 #define SEGMENT_MASK (SEGSIZ - 1) 47 #define SEGMENT_MASK (SEGSIZ - 1)
56
57 #define HAVE_ALLOCA
58
59 #define SYSTEM_MALLOC
60 48
61 #define HAVE_UNIX_DOMAIN 49 #define HAVE_UNIX_DOMAIN
62 50
63 #define LIB_X11_LIB -L/usr/lib/X11 -lX11 51 #define LIB_X11_LIB -L/usr/lib/X11 -lX11
64 52
107 * important NeXT AppKit symbols. 95 * important NeXT AppKit symbols.
108 */ 96 */
109 typedef unsigned short mode_t; 97 typedef unsigned short mode_t;
110 #endif /* ! NOT_C_CODE */ 98 #endif /* ! NOT_C_CODE */
111 99
112 #ifdef hppa
113 /* The following are glommed from the hp9000s800.h file */
114
115 #define STACK_DIRECTION 1
116 #endif
117
118 /* Axel Seibert <seibert@leo.org> says the following is necessary due
119 to configure problems. */
120
121 #undef REL_ALLOC
122
123 #undef SYSV_SYSTEM_DIR
124 #undef NONSYSTEM_DIR_LIBRARY
125
126 #define signal_handler_t int
127 #define pid_t int
128
129 #undef HAVE_TERMIOS
130 #undef BSD_TERMIOS
131 #define NO_TERMIO
132 #undef HAVE_TERMIO
133 #undef HAVE_MMAP
134
135 #define TAB3 XTABS
136
137 #define C_OPTIMIZE_SWITCH -pipe
138
139 #undef HAVE_SETITIMER
140
141 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0)) 100 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0))