0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
|
3 #include "usg5-4.h"
|
|
4
|
|
5 #define IRIX5
|
|
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 /* No need to use sprintf to get the tty name--we get that from _getpty. */
|
|
25 #ifdef PTY_TTY_NAME_SPRINTF
|
|
26 #undef PTY_TTY_NAME_SPRINTF
|
|
27 #endif
|
|
28 #define PTY_TTY_NAME_SPRINTF
|
|
29 /* No need to get the pty name at all. */
|
|
30 #ifdef PTY_NAME_SPRINTF
|
|
31 #undef PTY_NAME_SPRINTF
|
|
32 #endif
|
|
33 #define PTY_NAME_SPRINTF
|
|
34 #ifdef emacs
|
|
35 char *_getpty ();
|
|
36 #endif
|
|
37 /* We need only try once to open a pty. */
|
|
38 #define PTY_ITERATION
|
|
39 /* Here is how to do it. */
|
|
40 /* It is necessary to prevent SIGCHLD signals within _getpty.
|
|
41 So we block them. */
|
|
42 #define PTY_OPEN \
|
|
43 { \
|
|
44 char *name; \
|
|
45 EMACS_BLOCK_SIGCHLD; \
|
|
46 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
|
|
47 EMACS_UNBLOCK_SIGCHLD; \
|
|
48 if (name == 0) \
|
|
49 return -1; \
|
|
50 if (fd < 0) \
|
|
51 return -1; \
|
|
52 if (fstat (fd, &stb) < 0) \
|
|
53 return -1; \
|
|
54 strcpy (pty_name, name); \
|
|
55 }
|
|
56
|
|
57 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
|
|
58 on this system, so inhibit use of matherr. */
|
|
59 #define NO_MATHERR
|
|
60
|
|
61 /* Ulimit(UL_GMEMLIM) is busted... */
|
|
62 #define ULIMIT_BREAK_VALUE 0x14000000
|
|
63
|
|
64 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
|
|
65 #define PREFER_VSUSP
|
|
66
|
|
67 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
68 to interlock access to /usr/spool/mail/$USER.
|
|
69 The alternative is that a lock file named
|
|
70 /usr/spool/mail/$USER.lock. */
|
|
71
|
|
72 #define MAIL_USE_FLOCK
|
|
73
|
|
74 /* use K&R C */
|
|
75 /* XEmacs change -- use ANSI, not K&R */
|
|
76 #ifndef __GNUC__
|
163
|
77 #define C_SWITCH_SYSTEM "-xansi"
|
0
|
78 #endif
|
|
79
|
|
80 /* jackr@engr.sgi.com says that you can't mix different kinds of
|
|
81 signal-handling functions under IRIX 5.3. I'm going to assume
|
|
82 that that was the reason this got broken. Now that the
|
|
83 signal routines are fixed up, maybe this will work. --ben */
|
|
84 /* Nope, it doesn't. I've tried lots of things; it must be
|
|
85 genuinely broken. */
|
|
86 /* XEmacs addition: People on IRIX 5.2 and IRIX 5.3 systems have
|
|
87 reported that they can't break out of (while t) using C-g or C-G.
|
|
88 This does not occur on other systems, so let's assume that SIGIO
|
|
89 is broken on these systems. */
|
|
90 #define BROKEN_SIGIO
|