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