XEmacs 21.2-b1
[chise/xemacs-chise.git.1] / src / s / irix5-0.h
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   struct stat stb;                                              \
46   EMACS_BLOCK_SIGCHLD;                                          \
47   name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0);             \
48   EMACS_UNBLOCK_SIGCHLD;                                        \
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
61
62 /* Ulimit(UL_GMEMLIM) is busted...  */
63 #define ULIMIT_BREAK_VALUE 0x14000000
64
65 /* Tell process_send_signal to use VSUSP instead of VSWTCH.  */
66 #define PREFER_VSUSP
67
68 /* define MAIL_USE_FLOCK if the mailer uses flock
69    to interlock access to /usr/spool/mail/$USER.
70    The alternative is that a lock file named
71    /usr/spool/mail/$USER.lock.  */
72
73 #define MAIL_USE_FLOCK
74
75 /* use K&R C */
76 /* XEmacs change -- use ANSI, not K&R */
77 #ifndef __GNUC__
78 #define C_SWITCH_SYSTEM "-xansi"
79 #endif
80
81 /* jackr@engr.sgi.com says that you can't mix different kinds of
82    signal-handling functions under IRIX 5.3.  I'm going to assume
83    that that was the reason this got broken.  Now that the
84    signal routines are fixed up, maybe this will work. --ben */
85 /* Nope, it doesn't.  I've tried lots of things; it must be
86    genuinely broken. */
87 /* XEmacs addition: People on IRIX 5.2 and IRIX 5.3 systems have
88    reported that they can't break out of (while t) using C-g or C-G.
89    This does not occur on other systems, so let's assume that SIGIO
90    is broken on these systems. */
91 #define BROKEN_SIGIO