Mercurial > emacs
annotate src/s/irix4-0.h @ 81927:23646becfdf9
*** empty log message ***
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 17 Jul 2007 07:04:22 +0000 |
parents | 2d33c2445542 |
children | f06998349cfc dd7c098af727 |
rev | line source |
---|---|
75938
2d33c2445542
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 4.0 |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
2 |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
3 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, |
2d33c2445542
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. |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
5 |
2d33c2445542
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. |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
7 |
2d33c2445542
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 |
2d33c2445542
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 |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
10 the Free Software Foundation; either version 2, or (at your option) |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
11 any later version. |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
12 |
2d33c2445542
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, |
2d33c2445542
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 |
2d33c2445542
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 |
2d33c2445542
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. |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
17 |
2d33c2445542
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 |
2d33c2445542
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 |
2d33c2445542
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, |
2d33c2445542
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. */ |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
22 |
2d33c2445542
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
23 |
1493 | 24 #include "irix3-3.h" |
25 | |
26 #define USG5_3 | |
3305 | 27 #define IRIX4 |
18759
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
28 /* XPointer is not defined in the older X headers -- JPff@maths.bath.ac.uk */ |
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
29 #define XPointer caddr_t |
1493 | 30 |
3098
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
31 #undef NEED_SIOCTL |
1493 | 32 |
10077
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
33 /* Include unistd.h, even though we don't define POSIX. */ |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
34 #define NEED_UNISTD_H |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
35 |
3111
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
36 /* Make process_send_signal work by "typing" a signal character on the pty. */ |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
37 #define SIGNALS_VIA_CHARACTERS |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
38 |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
39 #ifndef __GNUC__ |
1493 | 40 /* use K&R C */ |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
41 /* We need to increase the expression tree space with -Wf,-XNh |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
42 (ghazi@caip.rutgers.edu 7/8/97.) |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
43 */ |
23843
b250f3dae8d9
(C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
Karl Heuer <kwzh@gnu.org>
parents:
18759
diff
changeset
|
44 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh4000 |
1856
c4768d9b6a2f
(C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1493
diff
changeset
|
45 #endif |
1493 | 46 |
47 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
48 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
49 we'll just define WNOHANG right here. | |
50 (An implicit decl is good enough for wait3.) */ | |
51 | |
52 #define WNOHANG 0x1 | |
53 | |
54 /* No need to use sprintf to get the tty name--we get that from _getpty. */ | |
2992
8c74c4712164
Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
Jim Blandy <jimb@redhat.com>
parents:
2223
diff
changeset
|
55 #undef PTY_TTY_NAME_SPRINTF |
1493 | 56 #define PTY_TTY_NAME_SPRINTF |
57 /* No need to get the pty name at all. */ | |
58 #define PTY_NAME_SPRINTF | |
59 /* We need only try once to open a pty. */ | |
60 #define PTY_ITERATION | |
61 /* Here is how to do it. */ | |
62 /* It is necessary to prevent SIGCHLD signals within _getpty. | |
63 So we block them. */ | |
64 #define PTY_OPEN \ | |
65 { \ | |
66 int mask = sigblock (sigmask (SIGCHLD)); \ | |
67 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ | |
68 sigsetmask(mask); \ | |
69 if (name == 0) \ | |
70 return -1; \ | |
71 if (fd < 0) \ | |
72 return -1; \ | |
73 if (fstat (fd, &stb) < 0) \ | |
74 return -1; \ | |
75 strcpy (pty_name, name); \ | |
76 } | |
52401 | 77 |
78 /* arch-tag: cfd7e200-a4dc-4f67-9a32-4184c10b0c57 | |
79 (do not change this comment) */ |