Partially sync files.el from XEmacs 21.5 for wildcard support.
[sxemacs] / src / m / sparc.h
1 /* machine description file for Sun 4 SPARC.
2    Copyright (C) 1987, 1994 Free Software Foundation, Inc.
3
4 This file is part of SXEmacs
5
6 SXEmacs 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 3 of the License, or
9 (at your option) any later version.
10
11 SXEmacs 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 this program.  If not, see <http://www.gnu.org/licenses/>. */
18
19
20 /* Synched up with: FSF 19.31. */
21
22 /* The following line tells the configuration script what sort of
23    operating system this machine is likely to run.
24    USUAL-OPSYS="note"
25
26 NOTE-START
27 Use -opsystem=sunos4 for operating system version 4, and
28 -opsystem=bsd4-2 for earlier versions.
29 NOTE-END  */
30
31 /* XEmacs change */
32 /* Say this machine is a sparc if we are not generating the Makefiles.
33    In that case say we are a SPARC.  Otherwise people who have sparc
34    in a path will not be happy. */
35
36 #ifdef NOT_C_CODE
37 # define SPARC
38 #else
39 # ifndef sparc
40 #  define sparc
41 # endif
42 #endif
43
44 /* Mask for address bits within a memory segment */
45
46 #define SEGMENT_MASK (SEGSIZ - 1)
47
48 #if ! defined (__NetBSD__) && ! defined (__linux__) && !defined (__OpenBSD__)
49 /* This really belongs in s/sun.h.  */
50
51 /* Data type of load average, as read out of kmem.  */
52
53 #define LOAD_AVE_TYPE long
54
55 /* Convert that into an integer that is 100 for a load average of 1.0  */
56
57 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
58
59 /* Say that the text segment of a.out includes the header;
60    the header actually occupies the first few bytes of the text segment
61    and is counted in hdr.a_text.  */
62
63 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
64
65 /* This is the offset of the executable's text, from the start of the file.  */
66
67 #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
68
69 #endif                          /* not Linux or NetBSD or OpenBSD */