0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
|
3 #include "irix3-3.h"
|
|
4
|
|
5 #define USG5_3
|
|
6 #define IRIX4
|
|
7
|
|
8 #undef NEED_SIOCTL
|
|
9
|
|
10 /* Make process_send_signal work by "typing" a signal character on the pty. */
|
175
|
11 /* #define SIGNALS_VIA_CHARACTERS */ /* mrb */
|
0
|
12
|
|
13 /* use K&R C */
|
|
14 /* XEmacs change -- use ANSI, not K&R */
|
|
15 #ifndef __GNUC__
|
163
|
16 #define C_SWITCH_SYSTEM "-xansi"
|
0
|
17 #endif
|
|
18
|
|
19 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
|
|
20 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
|
|
21 we'll just define WNOHANG right here.
|
|
22 (An implicit decl is good enough for wait3.) */
|
|
23 /* [XEmacs: Now that we don't use BIG_ENDIAN/LITTLE_ENDIAN, it's safe
|
|
24 to include wait.h. Should something change here?] */
|
|
25
|
|
26 #define WNOHANG 0x1
|
|
27
|
|
28 /* No need to use sprintf to get the tty name--we get that from _getpty. */
|
|
29 #undef PTY_TTY_NAME_SPRINTF
|
|
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 char *name; \
|
|
41 EMACS_BLOCK_SIGCHLD; \
|
|
42 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
|
|
43 EMACS_UNBLOCK_SIGCHLD; \
|
|
44 if (name == 0) \
|
|
45 return -1; \
|
|
46 if (fd < 0) \
|
|
47 return -1; \
|
|
48 if (fstat (fd, &stb) < 0) \
|
|
49 return -1; \
|
|
50 strcpy (pty_name, name); \
|
|
51 }
|
|
52
|
|
53 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
|
|
54 on this system, so inhibit use of matherr. */
|
|
55 #define NO_MATHERR
|