5 /* We want BSD style signals. */
8 #define SETPGRP_RELEASES_CTTY
21 #define SYSTEM_TYPE "irix"
23 #ifdef SETUP_SLAVE_PTY
24 #undef SETUP_SLAVE_PTY
27 /* thomas@mathematik.uni-bremen.de says this is needed. */
28 /* Make process_send_signal work by "typing" a signal character on the pty. */
29 #define SIGNALS_VIA_CHARACTERS
31 /* Define HAVE_ALLOCA to say that the system provides a properly
32 working alloca function and it should be used. */
42 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
43 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
44 we'll just define WNOHANG right here.
45 (An implicit decl is good enough for wait3.) */
47 /* #define WNOHANG 0x1 */
49 /* No need to use sprintf to get the tty name--we get that from _getpty. */
50 #ifdef PTY_TTY_NAME_SPRINTF
51 #undef PTY_TTY_NAME_SPRINTF
53 #define PTY_TTY_NAME_SPRINTF
54 /* No need to get the pty name at all. */
55 #ifdef PTY_NAME_SPRINTF
56 #undef PTY_NAME_SPRINTF
58 #define PTY_NAME_SPRINTF
62 /* We need only try once to open a pty. */
64 /* Here is how to do it. */
67 struct sigaction ocstat, cstat; \
69 sigemptyset(&cstat.sa_mask); \
70 cstat.sa_handler = SIG_DFL; \
72 sigaction(SIGCLD, &cstat, &ocstat); \
73 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
74 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
79 if (fstat (fd, &stb) < 0) \
81 strcpy (pty_name, name); \
84 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
88 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
89 on this system, so inhibit use of matherr. */
92 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
93 #define GETPGRP_NO_ARG
95 /* Ulimit(UL_GMEMLIM) is busted... */
96 #define ULIMIT_BREAK_VALUE 0x14000000
98 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
101 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
102 tell the linker to avoid making one. SGI's cc does this by
103 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
105 #define LD_SWITCH_SYSTEM -G 0
108 /* define MAIL_USE_FLOCK if the mailer uses flock
109 to interlock access to /usr/spool/mail/$USER.
110 The alternative is that a lock file named
111 /usr/spool/mail/$USER.lock. */
113 #define MAIL_USE_FLOCK
117 #define C_SWITCH_SYSTEM -cckr
120 /* -g does not work on Irix, and since gcc warns if you use it,
121 turn off the warning. */
123 #define C_DEBUG_SWITCH