]> code.delx.au - gnu-emacs/blob - src/s/irix5-0.h
(re_max_failures): Reduce to 8000.
[gnu-emacs] / src / s / irix5-0.h
1 #include "usg5-4.h"
2
3 #define IRIX5
4
5 #define SETPGRP_RELEASES_CTTY
6
7 #ifdef LIBS_SYSTEM
8 #undef LIBS_SYSTEM
9 #endif
10
11 #ifdef LIB_STANDARD
12 #undef LIB_STANDARD
13 #endif
14
15 #ifdef SYSTEM_TYPE
16 #undef SYSTEM_TYPE
17 #endif
18 #define SYSTEM_TYPE "irix"
19
20 #ifdef SETUP_SLAVE_PTY
21 #undef SETUP_SLAVE_PTY
22 #endif
23
24 /* thomas@mathematik.uni-bremen.de says this is needed. */
25 /* Make process_send_signal work by "typing" a signal character on the pty. */
26 #define SIGNALS_VIA_CHARACTERS
27
28 /* Define HAVE_ALLOCA to say that the system provides a properly
29 working alloca function and it should be used. */
30 #define HAVE_ALLOCA
31 #undef C_ALLOCA
32
33 #ifndef NOT_C_CODE
34 #ifndef __GNUC__
35 #include <alloca.h>
36 #endif
37 #endif
38
39 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
40 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
41 we'll just define WNOHANG right here.
42 (An implicit decl is good enough for wait3.) */
43
44 /* #define WNOHANG 0x1 */
45
46 /* No need to use sprintf to get the tty name--we get that from _getpty. */
47 #ifdef PTY_TTY_NAME_SPRINTF
48 #undef PTY_TTY_NAME_SPRINTF
49 #endif
50 #define PTY_TTY_NAME_SPRINTF
51 /* No need to get the pty name at all. */
52 #ifdef PTY_NAME_SPRINTF
53 #undef PTY_NAME_SPRINTF
54 #endif
55 #define PTY_NAME_SPRINTF
56 #ifdef emacs
57 char *_getpty();
58 #endif
59 /* We need only try once to open a pty. */
60 #define PTY_ITERATION
61 /* Here is how to do it. */
62 #define PTY_OPEN \
63 { \
64 struct sigaction ocstat, cstat; \
65 char * name; \
66 sigemptyset(&cstat.sa_mask); \
67 cstat.sa_handler = SIG_DFL; \
68 cstat.sa_flags = 0; \
69 sigaction(SIGCLD, &cstat, &ocstat); \
70 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
71 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
72 if (name == 0) \
73 return -1; \
74 if (fd < 0) \
75 return -1; \
76 if (fstat (fd, &stb) < 0) \
77 return -1; \
78 strcpy (pty_name, name); \
79 }
80
81 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
82 throughout. */
83 #define POSIX_SIGNALS
84
85 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
86 on this system, so inhibit use of matherr. */
87 #define NO_MATHERR
88
89 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
90 #define GETPGRP_NO_ARG
91
92 /* Ulimit(UL_GMEMLIM) is busted... */
93 #define ULIMIT_BREAK_VALUE 0x14000000
94
95 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
96 #define PREFER_VSUSP
97
98 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
99 tell the linker to avoid making one. SGI's cc does this by
100 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
101 #ifdef __GNUC__
102 #define LD_SWITCH_SYSTEM -G 0
103 #endif
104
105 /* define MAIL_USE_FLOCK if the mailer uses flock
106 to interlock access to /usr/spool/mail/$USER.
107 The alternative is that a lock file named
108 /usr/spool/mail/$USER.lock. */
109
110 #define MAIL_USE_FLOCK
111
112 /* use K&R C */
113 #ifndef __GNUC__
114 #define C_SWITCH_SYSTEM -cckr
115 #endif