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
38 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
39 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
40 we'll just define WNOHANG right here.
41 (An implicit decl is good enough for wait3.) */
43 /* #define WNOHANG 0x1 */
45 /* No need to use sprintf to get the tty name--we get that from _getpty. */
46 #ifdef PTY_TTY_NAME_SPRINTF
47 #undef PTY_TTY_NAME_SPRINTF
49 #define PTY_TTY_NAME_SPRINTF
50 /* No need to get the pty name at all. */
51 #ifdef PTY_NAME_SPRINTF
52 #undef PTY_NAME_SPRINTF
54 #define PTY_NAME_SPRINTF
58 /* We need only try once to open a pty. */
60 /* Here is how to do it. */
63 struct sigaction ocstat, cstat; \
65 sigemptyset(&cstat.sa_mask); \
66 cstat.sa_handler = SIG_DFL; \
68 sigaction(SIGCLD, &cstat, &ocstat); \
69 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
70 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
75 if (fstat (fd, &stb) < 0) \
77 strcpy (pty_name, name); \
80 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
84 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
85 #define GETPGRP_NO_ARG
87 /* Ulimit(UL_GMEMLIM) is busted... */
88 #define ULIMIT_BREAK_VALUE 0x14000000
90 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
93 /* define MAIL_USE_FLOCK if the mailer uses flock
94 to interlock access to /usr/spool/mail/$USER.
95 The alternative is that a lock file named
96 /usr/spool/mail/$USER.lock. */
98 #define MAIL_USE_FLOCK
103 #define C_SWITCH_SYSTEM -cckr
107 /* -g used not to work on Irix unless you used gas, and since gcc
108 warns if you use it, turn off the warning. */
109 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
110 I'm not sure about Irix 5 -- fx */
112 #define C_DEBUG_SWITCH
115 /* Prevent the variable ospeed from being defined by -lcurses
116 because it defines it with too few bytes. */
117 #define ospeed ospeed_
119 #define NARROWPROTO 1
121 #define USE_MMAP_FOR_BUFFERS 1