Mercurial > emacs
annotate src/s/irix4-0.h @ 9480:8a36332efbf2
* perl-mode.el: (perl-mode): Set font-lock-defaults.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Wed, 12 Oct 1994 09:04:05 +0000 |
parents | 191acacfa1ec |
children | ee5e9fbcd051 |
rev | line source |
---|---|
1493 | 1 #include "irix3-3.h" |
2 | |
3 #define USG5_3 | |
3305 | 4 #define IRIX4 |
1493 | 5 |
6 #define HAVE_ALLOCA | |
3098
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
7 #ifndef NOT_C_CODE |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
8 #include <alloca.h> |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
9 #endif |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
10 |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
11 #undef NEED_SIOCTL |
1493 | 12 |
3111
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
13 /* 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
|
14 #define SIGNALS_VIA_CHARACTERS |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
15 |
1493 | 16 /* use K&R C */ |
1856
c4768d9b6a2f
(C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1493
diff
changeset
|
17 #ifndef __GNUC__ |
1493 | 18 #define C_SWITCH_MACHINE -cckr |
1856
c4768d9b6a2f
(C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1493
diff
changeset
|
19 #endif |
1493 | 20 |
21 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
22 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
23 we'll just define WNOHANG right here. | |
24 (An implicit decl is good enough for wait3.) */ | |
25 | |
26 #define WNOHANG 0x1 | |
27 | |
28 /* 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
|
29 #undef PTY_TTY_NAME_SPRINTF |
1493 | 30 #define PTY_TTY_NAME_SPRINTF |
31 /* No need to get the pty name at all. */ | |
32 #define PTY_NAME_SPRINTF | |
33 /* We need only try once to open a pty. */ | |
34 #define PTY_ITERATION | |
35 /* Here is how to do it. */ | |
36 /* It is necessary to prevent SIGCHLD signals within _getpty. | |
37 So we block them. */ | |
38 #define PTY_OPEN \ | |
39 { \ | |
40 int mask = sigblock (sigmask (SIGCHLD)); \ | |
41 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ | |
42 sigsetmask(mask); \ | |
43 if (name == 0) \ | |
44 return -1; \ | |
45 if (fd < 0) \ | |
46 return -1; \ | |
47 if (fstat (fd, &stb) < 0) \ | |
48 return -1; \ | |
49 strcpy (pty_name, name); \ | |
50 } | |
3026 | 51 |
52 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined | |
53 on this system, so inhibit use of matherr. */ | |
54 #define NO_MATHERR |