annotate src/m/sr2k.h @ 24910:b991eeca9d59

Comment changes.
author Richard M. Stallman <rms@gnu.org>
date Thu, 01 Jul 1999 14:16:44 +0000
parents f932e8b3c525
children 4be8406ebef9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16793
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* machine description file for Hitachi SR2001/SR2201 machines.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 Copyright (C) 1996 Free Software Foundation, Inc.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 This file is part of GNU Emacs.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 any later version.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 GNU General Public License for more details.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 /* The following line tells the configuration script what sort of
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 operating system this machine is likely to run.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 USUAL-OPSYS="hpux" */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 is the most significant byte. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #define WORDS_BIG_ENDIAN
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 * group of arguments and treat it as an array of the arguments. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 #define NO_ARG_ARRAY
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 /* Define WORD_MACHINE if addresses and such have
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 * to be corrected before they can be used as byte counts. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 #undef WORD_MACHINE
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 /* Now define a symbol for the cpu type, if your compiler
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 does not define it automatically:
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 Ones defined so far include vax, m68000, ns16000, pyramid,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 orion, tahoe, APOLLO and many others */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 #ifndef hp9000s800
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 # define hp9000s800
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 #endif
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 /* Use type int rather than a union, to represent Lisp_Object */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 /* This is desirable for most machines. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 #define NO_UNION_TYPE
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 the bit field into an int. In other words, if bit fields
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 are always unsigned.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 If you use NO_UNION_TYPE, this flag does not matter. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 #define EXPLICIT_SIGN_EXTEND
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 /* The standard definitions of these macros would work ok,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 but these are faster because the constants are short. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 #define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 #define XSET(var, type, ptr) \
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS))
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 #define XMARKBIT(a) ((a) < 0)
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 #define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT))
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 #if 0 /* Loses when sign bit of type field is set. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 #define XUNMARK(a) ((a) = (((a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS))
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 #endif
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 /* Define the BSTRING functions in terms of the sysV functions. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 /* On HPUX 8.05, including types.h can include strings.h
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 which declares these as functions. Hence the #ifndef. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 #ifndef HAVE_BCOPY
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 #define bcopy(a,b,s) memcpy (b,a,s)
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 #define bzero(a,s) memset (a,0,s)
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 #define bcmp memcmp
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 #endif
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 /* #ifdef __hpux */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 /* Now define a symbol for the cpu type, if your compiler
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 does not define it automatically:
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 Ones defined so far include vax, m68000, ns16000, pyramid,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 orion, tahoe, APOLLO and many others */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 #ifndef hp9000s800
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 # define hp9000s800
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 #endif
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 /* Data type of load average, as read out of kmem. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 #define LOAD_AVE_TYPE double
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 /* Convert that into an integer that is 100 for a load average of 1.0 */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 /* Define CANNOT_DUMP on machines where unexec does not work.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 Then the function dump-emacs will not be defined
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 and temacs will do (load "loadup") automatically unless told otherwise. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 #undef CANNOT_DUMP
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 /* Define VIRT_ADDR_VARIES if the virtual addresses of
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 pure and impure space as loaded can vary, and even their
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 relative order cannot be relied on.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 Otherwise Emacs assumes that text space precedes data space,
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 numerically. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 #define VIRT_ADDR_VARIES
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 /* Define C_ALLOCA if this machine does not support a true alloca
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 and the one written in C should be used instead.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 Define HAVE_ALLOCA to say that the system provides a properly
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 working alloca function and it should be used.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 Define neither one if an assembler-language alloca
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 in the file alloca.s should be used. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 #define C_ALLOCA
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 /* #define HAVE_ALLOCA */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 /* the data segment on this machine always starts at address 0x40000000. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 #define DATA_SEG_BITS 0x40000000
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 #define DATA_START 0x40000000
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 #define TEXT_START 0x00000000
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 #define STACK_DIRECTION 1
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 /* Define NO_REMAP if memory segmentation makes it not work well
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 to change the boundary between the text section and data section
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 when Emacs is dumped. If you define this, the preloaded Lisp
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 code will not be sharable; but that's better than failing completely. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 #define NO_REMAP
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 /* This machine requires completely different unexec code
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 which lives in a separate file. Specify the file name. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 #define UNEXEC unexhp9k800.o
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 #define LIBS_MACHINE
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 #define LIBS_DEBUG
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 /* Include the file bsdtty.h, since this machine has job control. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 /* #define NEED_BSDTTY */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 /* The symbol in the kernel where the load average is found
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 is named _avenrun. At this time there are two major flavors
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 of hp-ux (there is the s800 and s300 (s200) flavors). The
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 differences are thusly moved to the corresponding machine description file.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166 /* no underscore please */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 #define LDAV_SYMBOL "avenrun"
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 #if 0 /* Supposedly no longer true. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 /* In hpux, for unknown reasons, S_IFLNK is defined even though
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171 symbolic links do not exist.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172 Make sure our conditionals based on S_IFLNK are not confused.
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174 Here we assume that stat.h is included before config.h
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175 so that we can override it here. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 #undef S_IFLNK
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 #endif
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 /* On USG systems these have different names. */
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 #define index strchr
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 #define rindex strrchr
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184
f932e8b3c525 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 /* #endif */