annotate src/s/irix4-0.h @ 7864:e520e9f9a8d9

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