5 #undef sigsetmask /* use sys_sigsetmask */
6 #undef _longjmp /* use system versions, not conservative aliases */
9 #define SETPGRP_RELEASES_CTTY
22 #define SYSTEM_TYPE "irix"
24 #ifdef SETUP_SLAVE_PTY
25 #undef SETUP_SLAVE_PTY
28 /* thomas@mathematik.uni-bremen.de says this is needed. */
29 /* Make process_send_signal work by "typing" a signal character on the pty. */
30 #define SIGNALS_VIA_CHARACTERS
32 /* Define HAVE_ALLOCA to say that the system provides a properly
33 working alloca function and it should be used. */
43 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
44 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
45 we'll just define WNOHANG right here.
46 (An implicit decl is good enough for wait3.) */
48 /* #define WNOHANG 0x1 */
50 /* No need to use sprintf to get the tty name--we get that from _getpty. */
51 #ifdef PTY_TTY_NAME_SPRINTF
52 #undef PTY_TTY_NAME_SPRINTF
54 #define PTY_TTY_NAME_SPRINTF
55 /* No need to get the pty name at all. */
56 #ifdef PTY_NAME_SPRINTF
57 #undef PTY_NAME_SPRINTF
59 #define PTY_NAME_SPRINTF
63 /* We need only try once to open a pty. */
65 /* Here is how to do it. */
68 struct sigaction ocstat, cstat; \
70 sigemptyset(&cstat.sa_mask); \
71 cstat.sa_handler = SIG_DFL; \
73 sigaction(SIGCLD, &cstat, &ocstat); \
74 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
75 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
80 if (fstat (fd, &stb) < 0) \
82 strcpy (pty_name, name); \
85 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
89 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
90 on this system, so inhibit use of matherr. */
93 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
94 #define GETPGRP_NO_ARG
96 /* Ulimit(UL_GMEMLIM) is busted... */
97 #define ULIMIT_BREAK_VALUE 0x14000000
99 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
102 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
103 tell the linker to avoid making one. SGI's cc does this by
104 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
106 #define LD_SWITCH_SYSTEM -G 0
109 /* define MAIL_USE_FLOCK if the mailer uses flock
110 to interlock access to /usr/spool/mail/$USER.
111 The alternative is that a lock file named
112 /usr/spool/mail/$USER.lock. */
114 #define MAIL_USE_FLOCK
118 #define C_SWITCH_SYSTEM -cckr
121 /* -g does not work on Irix, and since gcc warns if you use it,
122 turn off the warning. */
124 #define C_DEBUG_SWITCH
127 /* Prevent the variable ospeed from being defined by -lcurses
128 because it defines it with too few bytes. */
129 #define ospeed ospeed_