]>
code.delx.au - gnu-emacs/blob - src/s/irix5-0.h
5 #define SETPGRP_RELEASES_CTTY
18 #define SYSTEM_TYPE "irix"
20 #ifdef SETUP_SLAVE_PTY
21 #undef SETUP_SLAVE_PTY
24 /* thomas@mathematik.uni-bremen.de says this is needed. */
25 /* Make process_send_signal work by "typing" a signal character on the pty. */
26 #define SIGNALS_VIA_CHARACTERS
28 /* Define HAVE_ALLOCA to say that the system provides a properly
29 working alloca function and it should be used. */
39 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
40 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
41 we'll just define WNOHANG right here.
42 (An implicit decl is good enough for wait3.) */
44 /* #define WNOHANG 0x1 */
46 /* No need to use sprintf to get the tty name--we get that from _getpty. */
47 #ifdef PTY_TTY_NAME_SPRINTF
48 #undef PTY_TTY_NAME_SPRINTF
50 #define PTY_TTY_NAME_SPRINTF
51 /* No need to get the pty name at all. */
52 #ifdef PTY_NAME_SPRINTF
53 #undef PTY_NAME_SPRINTF
55 #define PTY_NAME_SPRINTF
59 /* We need only try once to open a pty. */
61 /* Here is how to do it. */
64 struct sigaction ocstat, cstat; \
66 sigemptyset(&cstat.sa_mask); \
67 cstat.sa_handler = SIG_DFL; \
69 sigaction(SIGCLD, &cstat, &ocstat); \
70 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
71 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
76 if (fstat (fd, &stb) < 0) \
78 strcpy (pty_name, name); \
81 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
85 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
86 on this system, so inhibit use of matherr. */
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 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
99 tell the linker to avoid making one. SGI's cc does this by
100 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
102 #define LD_SWITCH_SYSTEM -G 0
105 /* define MAIL_USE_FLOCK if the mailer uses flock
106 to interlock access to /usr/spool/mail/$USER.
107 The alternative is that a lock file named
108 /usr/spool/mail/$USER.lock. */
110 #define MAIL_USE_FLOCK
114 #define C_SWITCH_SYSTEM -cckr