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 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
33 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
34 we'll just define WNOHANG right here.
35 (An implicit decl is good enough for wait3.) */
37 /* #define WNOHANG 0x1 */
39 /* No need to use sprintf to get the tty name--we get that from _getpty. */
40 #ifdef PTY_TTY_NAME_SPRINTF
41 #undef PTY_TTY_NAME_SPRINTF
43 #define PTY_TTY_NAME_SPRINTF
44 /* No need to get the pty name at all. */
45 #ifdef PTY_NAME_SPRINTF
46 #undef PTY_NAME_SPRINTF
48 #define PTY_NAME_SPRINTF
52 /* We need only try once to open a pty. */
54 /* Here is how to do it. */
57 struct sigaction ocstat, cstat; \
59 sigemptyset(&cstat.sa_mask); \
60 cstat.sa_handler = SIG_DFL; \
62 sigaction(SIGCLD, &cstat, &ocstat); \
63 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
64 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
69 if (fstat (fd, &stb) < 0) \
71 strcpy (pty_name, name); \
74 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
78 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
79 #define GETPGRP_NO_ARG
81 /* Ulimit(UL_GMEMLIM) is busted... */
82 #define ULIMIT_BREAK_VALUE 0x14000000
84 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
87 /* define MAIL_USE_FLOCK if the mailer uses flock
88 to interlock access to /usr/spool/mail/$USER.
89 The alternative is that a lock file named
90 /usr/spool/mail/$USER.lock. */
92 #define MAIL_USE_FLOCK
97 #define C_SWITCH_SYSTEM -cckr
101 /* -g used not to work on Irix unless you used gas, and since gcc
102 warns if you use it, turn off the warning. */
103 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
104 I'm not sure about Irix 5 -- fx */
106 #define C_DEBUG_SWITCH
109 /* Prevent the variable ospeed from being defined by -lcurses
110 because it defines it with too few bytes. */
111 #define ospeed ospeed_
113 #define NARROWPROTO 1
115 #define USE_MMAP_FOR_BUFFERS 1
117 /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b
118 (do not change this comment) */