Mercurial > emacs
annotate src/s/irix6-5.h @ 108882:3ff97bad1c47
Move UNEXEC definition to autoconf.
* configure.in (unxec): Do not define and substitute.
(UNEXEC_OBJ): New output variable, replaces cpp UNEXEC.
* msdos/sed1v2.inp (UNEXEC_OBJ): Use UNEXEC_OBJ instead of unexec.
* src/s/usg5-4.h (UNEXEC): Remove, move to configure.in.
* src/s/sol2-10.h (UNEXEC):
* src/s/irix6-5.h (UNEXEC):
* src/s/hpux10-20.h (UNEXEC):
* src/s/gnu-linux.h (UNEXEC):
* src/s/darwin.h (UNEXEC):
* src/s/cygwin.h (UNEXEC):
* src/s/bsd-common.h (UNEXEC):
* src/s/aix4-2.h (UNEXEC):
* src/m/alpha.h (UNEXEC): Likewise.
* src/Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 03 Jun 2010 15:16:02 -0700 |
parents | f8e62c2bf3e9 |
children | 6799ec1a7188 |
rev | line source |
---|---|
75964
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
1 /* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5. |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
2 |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
92159
diff
changeset
|
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
106815 | 4 2008, 2009, 2010 Free Software Foundation, Inc. |
75964
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
5 |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
6 This file is part of GNU Emacs. |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
7 |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
92159
diff
changeset
|
8 GNU Emacs is free software: you can redistribute it and/or modify |
75964
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
9 it under the terms of the GNU General Public License as published by |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
92159
diff
changeset
|
10 the Free Software Foundation, either version 3 of the License, or |
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
92159
diff
changeset
|
11 (at your option) any later version. |
75964
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
12 |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
13 GNU Emacs is distributed in the hope that it will be useful, |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
16 GNU General Public License for more details. |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
17 |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
92159
diff
changeset
|
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
75964
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
20 |
aeeef59c6f71
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
68263
diff
changeset
|
21 |
48081 | 22 #define IRIX6_5 /* used in m/iris4d */ |
92159
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
23 #include "usg5-4.h" |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
24 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
25 #undef _longjmp /* use system versions, not conservative aliases */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
26 #undef _setjmp |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
27 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
28 #define SETPGRP_RELEASES_CTTY |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
29 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
30 #ifdef SYSTEM_TYPE |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
31 #undef SYSTEM_TYPE |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
32 #endif |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
33 #define SYSTEM_TYPE "irix" |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
34 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
35 #ifdef SETUP_SLAVE_PTY |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
36 #undef SETUP_SLAVE_PTY |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
37 #endif |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
38 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
39 /* thomas@mathematik.uni-bremen.de says this is needed. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
40 /* Make process_send_signal work by "typing" a signal character on the pty. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
41 #define SIGNALS_VIA_CHARACTERS |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
42 |
108206 | 43 /* Letter to use in finding device name of first pty, |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108379
diff
changeset
|
44 if system supports pty's. 'a' means it is /dev/ptya0 */ |
108206 | 45 #undef FIRST_PTY_LETTER |
46 #define FIRST_PTY_LETTER 'q' | |
47 | |
92159
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
48 /* No need to use sprintf to get the tty name--we get that from _getpty. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
49 #define PTY_TTY_NAME_SPRINTF |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
50 /* No need to get the pty name at all. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
51 #ifdef PTY_NAME_SPRINTF |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
52 #undef PTY_NAME_SPRINTF |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
53 #endif |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
54 #define PTY_NAME_SPRINTF |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
55 #ifdef emacs |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
56 char *_getpty(); |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
57 #endif |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
58 /* We need only try once to open a pty. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
59 #define PTY_ITERATION |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
60 /* Here is how to do it. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
61 #define PTY_OPEN \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
62 { \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
63 struct sigaction ocstat, cstat; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
64 char * name; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
65 sigemptyset(&cstat.sa_mask); \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
66 cstat.sa_handler = SIG_DFL; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
67 cstat.sa_flags = 0; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
68 sigaction(SIGCLD, &cstat, &ocstat); \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
69 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
70 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
71 if (name == 0) \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
72 return -1; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
73 if (fd < 0) \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
74 return -1; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
75 if (fstat (fd, &stb) < 0) \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
76 return -1; \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
77 strcpy (pty_name, name); \ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
78 } |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
79 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
80 /* Ulimit(UL_GMEMLIM) is busted... */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
81 #define ULIMIT_BREAK_VALUE 0x14000000 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
82 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
83 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
84 #define PREFER_VSUSP |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
85 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
86 #define NARROWPROTO 1 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
87 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
88 #define USE_MMAP_FOR_BUFFERS 1 |
9ed7610349d3
* configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents:
79756
diff
changeset
|
89 |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
90 #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ |
31925 | 91 #define _LP64 /* lisp.h takes care of the rest */ |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
92 #endif /* _MIPS_SZLONG */ |
23913 | 93 |
94 #undef SA_RESTART | |
95 | |
34612
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
96 #undef TIOCSIGSEND /* defined in usg5-4.h */ |
52401 | 97 |
68263
06d1688690ad
(GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents:
52401
diff
changeset
|
98 /* Tested on Irix 6.5. SCM worked on earlier versions. */ |
06d1688690ad
(GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents:
52401
diff
changeset
|
99 #define GC_SETJMP_WORKS 1 |
06d1688690ad
(GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents:
52401
diff
changeset
|
100 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
06d1688690ad
(GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents:
52401
diff
changeset
|
101 |
108379
203aa49071bf
Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
102 /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b |
203aa49071bf
Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
103 (do not change this comment) */ |
203aa49071bf
Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
104 |
52401 | 105 /* arch-tag: d7ad9ec2-54ad-4b2f-adf2-0070c5c63e83 |
106 (do not change this comment) */ |