|
|
1.1 ! root 1: /* m- file for hp9000 series 200 or 300 ! 2: Copyright (C) 1985 Free Software Foundation, Inc. ! 3: ! 4: This file is part of GNU Emacs. ! 5: ! 6: GNU Emacs is free software; you can redistribute it and/or modify ! 7: it under the terms of the GNU General Public License as published by ! 8: the Free Software Foundation; either version 1, or (at your option) ! 9: any later version. ! 10: ! 11: GNU Emacs is distributed in the hope that it will be useful, ! 12: but WITHOUT ANY WARRANTY; without even the implied warranty of ! 13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 14: GNU General Public License for more details. ! 15: ! 16: You should have received a copy of the GNU General Public License ! 17: along with GNU Emacs; see the file COPYING. If not, write to ! 18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ! 19: ! 20: ! 21: ! 22: /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ ! 23: ! 24: /* #define NOMULTIPLEJOBS */ ! 25: ! 26: /* Define this symbol if you are running a version of HP-UX ! 27: which predates version 6.01 */ ! 28: ! 29: /* #define HPUX_5 */ ! 30: ! 31: /* The following three symbols give information on ! 32: the size of various data types. */ ! 33: ! 34: #define SHORTBITS 16 /* Number of bits in a short */ ! 35: ! 36: #define INTBITS 32 /* Number of bits in an int */ ! 37: ! 38: #define LONGBITS 32 /* Number of bits in a long */ ! 39: ! 40: /* Define BIG_ENDIAN iff lowest-numbered byte in a word ! 41: is the most significant byte. */ ! 42: ! 43: #define BIG_ENDIAN ! 44: ! 45: /* Define NO_ARG_ARRAY if you cannot take the address of the first of a ! 46: * group of arguments and treat it as an array of the arguments. */ ! 47: ! 48: /* #define NO_ARG_ARRAY */ ! 49: ! 50: /* Define WORD_MACHINE if addresses and such have ! 51: * to be corrected before they can be used as byte counts. */ ! 52: ! 53: /* #define WORD_MACHINE */ ! 54: ! 55: /* Define how to take a char and sign-extend into an int. ! 56: On machines where char is signed, this is a no-op. */ ! 57: ! 58: #define SIGN_EXTEND_CHAR(c) (c) ! 59: ! 60: /* Now define a symbol for the cpu type, if your compiler ! 61: does not define it automatically. */ ! 62: ! 63: #ifndef hp9000s300 ! 64: #define hp9000s300 ! 65: #endif ! 66: ! 67: /* Use type int rather than a union, to represent Lisp_Object */ ! 68: /* This is desirable for most machines. */ ! 69: ! 70: #define NO_UNION_TYPE ! 71: ! 72: /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend ! 73: the 24-bit bit field into an int. In other words, if bit fields ! 74: are always unsigned. ! 75: ! 76: If you use NO_UNION_TYPE, this flag does not matter. */ ! 77: ! 78: #define EXPLICIT_SIGN_EXTEND ! 79: ! 80: /* Data type of load average, as read out of kmem. */ ! 81: ! 82: #define LOAD_AVE_TYPE double ! 83: ! 84: /* Convert that into an integer that is 100 for a load average of 1.0 */ ! 85: ! 86: #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) ! 87: ! 88: /* Define CANNOT_DUMP on machines where unexec does not work. ! 89: Then the function dump-emacs will not be defined ! 90: and temacs will do (load "loadup") automatically unless told otherwise. */ ! 91: ! 92: /* #define CANNOT_DUMP */ ! 93: ! 94: /* Define VIRT_ADDR_VARIES if the virtual addresses of ! 95: pure and impure space as loaded can vary, and even their ! 96: relative order cannot be relied on. ! 97: ! 98: Otherwise Emacs assumes that text space precedes data space, ! 99: numerically. */ ! 100: ! 101: /* #define VIRT_ADDR_VARIES */ ! 102: ! 103: /* For University of Utah 4.3bsd implemetation on HP300s. ! 104: The #ifndef __GNUC__ definitions are required for the "standard" cc, ! 105: a very old, brain-dead version of PCC. */ ! 106: ! 107: #ifdef BSD4_3 ! 108: /* Tell crt0.c that this is an ordinary 68020. */ ! 109: #undef hp9000s300 ! 110: #define CRT0_DUMMIES bogus_a6, ! 111: ! 112: #define HAVE_ALLOCA ! 113: ! 114: #ifndef __GNUC__ ! 115: #define LIBS_DEBUG /* don't have -lg that works */ ! 116: #define C_DEBUG_SWITCH /* don't support -g */ ! 117: #endif ! 118: ! 119: #undef LOAD_AVE_TYPE ! 120: #undef LOAD_AVE_CVT ! 121: #define LOAD_AVE_TYPE long ! 122: #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0)) ! 123: ! 124: #endif /* BSD4_3 */ ! 125: ! 126: #ifndef BSD4_3 ! 127: /* The following definitions are for HPUX only. */ ! 128: ! 129: /* The symbol in the kernel where the load average is found ! 130: is named _avenrun on this machine. */ ! 131: ! 132: #define LDAV_SYMBOL "_avenrun" ! 133: ! 134: /* This library is needed with -g, on the 200/300 only. */ ! 135: ! 136: #if !defined(__GNUC__) || defined(__HPUX_ASM__) ! 137: #define LIBS_DEBUG /usr/lib/end.o ! 138: #endif ! 139: ! 140: /* The symbol FIONREAD is defined, but the feature does not work ! 141: on the 200/300. */ ! 142: ! 143: #define BROKEN_FIONREAD ! 144: ! 145: /* In older versions of hpux, for unknown reasons, S_IFLNK is defined ! 146: even though symbolic links do not exist. ! 147: Make sure our conditionals based on S_IFLNK are not confused. ! 148: ! 149: Here we assume that stat.h is included before config.h ! 150: so that we can override it here. ! 151: ! 152: Version 6 of HP-UX has symbolic links. */ ! 153: ! 154: #ifdef HPUX_5 ! 155: #undef S_IFLNK ! 156: #endif ! 157: ! 158: /* Define the BSTRING functions in terms of the sysV functions. ! 159: Version 6 of HP-UX supplies these in the BSD library, ! 160: but that library has reported bugs in `signal'. */ ! 161: ! 162: /* #ifdef HPUX_5 */ ! 163: #define bcopy(a,b,s) memcpy (b,a,s) ! 164: #define bzero(a,s) memset (a,0,s) ! 165: #define bcmp memcmp ! 166: /* #endif */ ! 167: ! 168: /* On USG systems these have different names. ! 169: Version 6 of HP-UX supplies these in the BSD library, ! 170: which we currently want to avoid using. */ ! 171: ! 172: /* #ifdef HPUX_5 */ ! 173: #define index strchr ! 174: #define rindex strrchr ! 175: /* #endif */ ! 176: ! 177: /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 ! 178: * Emacs to run on both 68010 and 68020 based hp-ux's. ! 179: * ! 180: * Define OLD_HP_ASSEMBLER if you have an ancient assembler ! 181: * ! 182: * Define HPUX_68010 if you are using the new assembler but ! 183: * compiling for a s200 (upgraded) or s310. 68010 based ! 184: * processor without 68881. ! 185: */ ! 186: ! 187: /* These switches increase the size of some internal C compiler tables. ! 188: They are required for compiling the X11 interface files. */ ! 189: ! 190: #ifndef HPUX_5 ! 191: #ifndef __GNUC__ ! 192: #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 ! 193: #endif ! 194: #endif ! 195: ! 196: /* Define NEED_BSDTTY if you have such. */ ! 197: ! 198: #ifndef NOMULTIPLEJOBS ! 199: #define NEED_BSDTTY ! 200: #endif ! 201: ! 202: #endif /* not BSD4_3 */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.