Mercurial > emacs
annotate src/s/irix5-0.h @ 82595:d4f16cdedfe4
Move tree-widget/ from etc/ to etc/images/
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 22 Aug 2007 05:01:22 +0000 |
parents | f06998349cfc |
children | 68df465b9550 f55f9811f5d7 |
rev | line source |
---|---|
75939
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
1 /* Definitions file for GNU Emacs running on Silicon Graphics Irix system 5.0. |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
2 |
75941
0525c7dfa6ba
Add year missed from previous change.
Glenn Morris <rgm@gnu.org>
parents:
75939
diff
changeset
|
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
75939
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
4 2007 Free Software Foundation, Inc. |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
5 |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
6 This file is part of GNU Emacs. |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
7 |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
8 GNU Emacs is free software; you can redistribute it and/or modify |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
9 it under the terms of the GNU General Public License as published by |
78259
f06998349cfc
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75941
diff
changeset
|
10 the Free Software Foundation; either version 3, or (at your option) |
75939
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
11 any later version. |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
12 |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
13 GNU Emacs is distributed in the hope that it will be useful, |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
16 GNU General Public License for more details. |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
17 |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
19 along with GNU Emacs; see the file COPYING. If not, write to |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
21 Boston, MA 02110-1301, USA. */ |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
22 |
4ec4240c1973
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
23 |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
24 #include "usg5-4.h" |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
25 |
5182
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
26 #define IRIX5 |
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
27 |
16337
65db047f1886
(sigsetmask, _longjmp, _setjmp): #undef them.
Richard M. Stallman <rms@gnu.org>
parents:
15731
diff
changeset
|
28 #undef sigsetmask /* use sys_sigsetmask */ |
65db047f1886
(sigsetmask, _longjmp, _setjmp): #undef them.
Richard M. Stallman <rms@gnu.org>
parents:
15731
diff
changeset
|
29 #undef _longjmp /* use system versions, not conservative aliases */ |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48436
diff
changeset
|
30 #undef _setjmp |
15731 | 31 |
5182
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
32 #define SETPGRP_RELEASES_CTTY |
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
33 |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
34 #ifdef LIBS_SYSTEM |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
35 #undef LIBS_SYSTEM |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
36 #endif |
2890 | 37 |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
38 #ifdef LIB_STANDARD |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
39 #undef LIB_STANDARD |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
40 #endif |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
41 |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
42 #ifdef SYSTEM_TYPE |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
43 #undef SYSTEM_TYPE |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
44 #endif |
5191
414da6a99f69
(SYSTEM_TYPE): Make it "irix".
Richard M. Stallman <rms@gnu.org>
parents:
5182
diff
changeset
|
45 #define SYSTEM_TYPE "irix" |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
46 |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
47 #ifdef SETUP_SLAVE_PTY |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
48 #undef SETUP_SLAVE_PTY |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
49 #endif |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
50 |
5143
f051791645a2
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4608
diff
changeset
|
51 /* thomas@mathematik.uni-bremen.de says this is needed. */ |
f051791645a2
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4608
diff
changeset
|
52 /* Make process_send_signal work by "typing" a signal character on the pty. */ |
f051791645a2
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4608
diff
changeset
|
53 #define SIGNALS_VIA_CHARACTERS |
2890 | 54 |
55 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
56 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
57 we'll just define WNOHANG right here. | |
58 (An implicit decl is good enough for wait3.) */ | |
59 | |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
60 /* #define WNOHANG 0x1 */ |
2890 | 61 |
62 /* No need to use sprintf to get the tty name--we get that from _getpty. */ | |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
63 #ifdef PTY_TTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
64 #undef PTY_TTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
65 #endif |
2890 | 66 #define PTY_TTY_NAME_SPRINTF |
67 /* No need to get the pty name at all. */ | |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
68 #ifdef PTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
69 #undef PTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
70 #endif |
2890 | 71 #define PTY_NAME_SPRINTF |
72 #ifdef emacs | |
73 char *_getpty(); | |
74 #endif | |
75 /* We need only try once to open a pty. */ | |
76 #define PTY_ITERATION | |
77 /* Here is how to do it. */ | |
4237
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
78 #define PTY_OPEN \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
79 { \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
80 struct sigaction ocstat, cstat; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
81 char * name; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
82 sigemptyset(&cstat.sa_mask); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
83 cstat.sa_handler = SIG_DFL; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
84 cstat.sa_flags = 0; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
85 sigaction(SIGCLD, &cstat, &ocstat); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
86 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
87 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
88 if (name == 0) \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
89 return -1; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
90 if (fd < 0) \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
91 return -1; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
92 if (fstat (fd, &stb) < 0) \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
93 return -1; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
94 strcpy (pty_name, name); \ |
2890 | 95 } |
4237
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
96 |
12075 | 97 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX |
98 throughout. */ | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48436
diff
changeset
|
99 #define POSIX_SIGNALS |
12075 | 100 |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
101 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */ |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
102 #define GETPGRP_NO_ARG |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
103 |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
104 /* Ulimit(UL_GMEMLIM) is busted... */ |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
105 #define ULIMIT_BREAK_VALUE 0x14000000 |
7413
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
106 |
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
107 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ |
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
108 #define PREFER_VSUSP |
8610
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
109 |
9916
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
110 /* define MAIL_USE_FLOCK if the mailer uses flock |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
111 to interlock access to /usr/spool/mail/$USER. |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
112 The alternative is that a lock file named |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
113 /usr/spool/mail/$USER.lock. */ |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
114 |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
115 #define MAIL_USE_FLOCK |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
116 |
10775
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
117 /* use K&R C */ |
27411
eb68fec11d9a
Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
Dave Love <fx@gnu.org>
parents:
25032
diff
changeset
|
118 #if 0 |
10775
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
119 #ifndef __GNUC__ |
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
120 #define C_SWITCH_SYSTEM -cckr |
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
121 #endif |
27411
eb68fec11d9a
Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
Dave Love <fx@gnu.org>
parents:
25032
diff
changeset
|
122 #endif |
15646
6f12a8d1dad6
[__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
14254
diff
changeset
|
123 |
30797 | 124 /* -g used not to work on Irix unless you used gas, and since gcc |
125 warns if you use it, turn off the warning. */ | |
126 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95; | |
127 I'm not sure about Irix 5 -- fx */ | |
15646
6f12a8d1dad6
[__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
14254
diff
changeset
|
128 #ifdef __GNUC__ |
6f12a8d1dad6
[__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
14254
diff
changeset
|
129 #define C_DEBUG_SWITCH |
6f12a8d1dad6
[__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
14254
diff
changeset
|
130 #endif |
16376
19f6e851937e
(ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
16337
diff
changeset
|
131 |
19f6e851937e
(ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
16337
diff
changeset
|
132 /* Prevent the variable ospeed from being defined by -lcurses |
19f6e851937e
(ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
16337
diff
changeset
|
133 because it defines it with too few bytes. */ |
19f6e851937e
(ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
16337
diff
changeset
|
134 #define ospeed ospeed_ |
25032 | 135 |
136 #define NARROWPROTO 1 | |
137 | |
31600
ac8c86ff7ee3
(USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents:
31503
diff
changeset
|
138 #define USE_MMAP_FOR_BUFFERS 1 |
52401 | 139 |
140 /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b | |
141 (do not change this comment) */ |