]>
code.delx.au - gnu-emacs/blob - src/s/irix5-0.h
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 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
90 #define GETPGRP_NO_ARG
92 /* Ulimit(UL_GMEMLIM) is busted... */
93 #define ULIMIT_BREAK_VALUE 0x14000000
95 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
98 /* define MAIL_USE_FLOCK if the mailer uses flock
99 to interlock access to /usr/spool/mail/$USER.
100 The alternative is that a lock file named
101 /usr/spool/mail/$USER.lock. */
103 #define MAIL_USE_FLOCK
108 #define C_SWITCH_SYSTEM -cckr
112 /* -g used not to work on Irix unless you used gas, and since gcc
113 warns if you use it, turn off the warning. */
114 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
115 I'm not sure about Irix 5 -- fx */
117 #define C_DEBUG_SWITCH
120 /* Prevent the variable ospeed from being defined by -lcurses
121 because it defines it with too few bytes. */
122 #define ospeed ospeed_
124 #define NARROWPROTO 1