comparison src/m/next.h @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents bcdc7deadc19
children c7528f8e288d
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
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
38 /* Say that the text segment of a.out includes the header; 46 /* Say that the text segment of a.out includes the header;
39 the header actually occupies the first few bytes of the text segment 47 the header actually occupies the first few bytes of the text segment
40 and is counted in hdr.a_text. */ 48 and is counted in hdr.a_text. */
41 49
42 #define A_TEXT_OFFSET(HDR) sizeof (HDR) 50 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
43 51
44 /* Mask for address bits within a memory segment */ 52 /* Mask for address bits within a memory segment */
45 53
46 #define SEGSIZ 0x20000 54 #define SEGSIZ 0x20000
47 #define SEGMENT_MASK (SEGSIZ - 1) 55 #define SEGMENT_MASK (SEGSIZ - 1)
56
57 #define HAVE_ALLOCA
58
59 #define SYSTEM_MALLOC
48 60
49 #define HAVE_UNIX_DOMAIN 61 #define HAVE_UNIX_DOMAIN
50 62
51 #define LIB_X11_LIB -L/usr/lib/X11 -lX11 63 #define LIB_X11_LIB -L/usr/lib/X11 -lX11
52 64
95 * important NeXT AppKit symbols. 107 * important NeXT AppKit symbols.
96 */ 108 */
97 typedef unsigned short mode_t; 109 typedef unsigned short mode_t;
98 #endif /* ! NOT_C_CODE */ 110 #endif /* ! NOT_C_CODE */
99 111
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
100 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0)) 141 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0))