]> code.delx.au - gnu-emacs/blob - src/s/irix4-0.h
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
[gnu-emacs] / src / s / irix4-0.h
1 #include "irix3-3.h"
2
3 #define USG5_3
4 #define IRIX4
5
6 #define HAVE_ALLOCA
7 #ifndef NOT_C_CODE
8 #include <alloca.h>
9 #endif
10
11 #undef NEED_SIOCTL
12
13 /* Include unistd.h, even though we don't define POSIX. */
14 #define NEED_UNISTD_H
15
16 /* Make process_send_signal work by "typing" a signal character on the pty. */
17 #define SIGNALS_VIA_CHARACTERS
18
19 #ifndef __GNUC__
20 /* use K&R C */
21 /* We need to increase the expression tree space with -Wf,-XNh
22 (ghazi@caip.rutgers.edu 7/8/97.)
23 */
24 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh3000
25 #endif
26
27 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
28 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
29 we'll just define WNOHANG right here.
30 (An implicit decl is good enough for wait3.) */
31
32 #define WNOHANG 0x1
33
34 /* No need to use sprintf to get the tty name--we get that from _getpty. */
35 #undef PTY_TTY_NAME_SPRINTF
36 #define PTY_TTY_NAME_SPRINTF
37 /* No need to get the pty name at all. */
38 #define PTY_NAME_SPRINTF
39 /* We need only try once to open a pty. */
40 #define PTY_ITERATION
41 /* Here is how to do it. */
42 /* It is necessary to prevent SIGCHLD signals within _getpty.
43 So we block them. */
44 #define PTY_OPEN \
45 { \
46 int mask = sigblock (sigmask (SIGCHLD)); \
47 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
48 sigsetmask(mask); \
49 if (name == 0) \
50 return -1; \
51 if (fd < 0) \
52 return -1; \
53 if (fstat (fd, &stb) < 0) \
54 return -1; \
55 strcpy (pty_name, name); \
56 }
57
58 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
59 on this system, so inhibit use of matherr. */
60 #define NO_MATHERR