1 /* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5.
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 #define IRIX6_5 /* used in m/iris4d */
25 #undef sigsetmask /* use sys_sigsetmask */
26 #undef _longjmp /* use system versions, not conservative aliases */
29 #define SETPGRP_RELEASES_CTTY
42 #define SYSTEM_TYPE "irix"
44 #ifdef SETUP_SLAVE_PTY
45 #undef SETUP_SLAVE_PTY
48 /* thomas@mathematik.uni-bremen.de says this is needed. */
49 /* Make process_send_signal work by "typing" a signal character on the pty. */
50 #define SIGNALS_VIA_CHARACTERS
52 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
53 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
54 we'll just define WNOHANG right here.
55 (An implicit decl is good enough for wait3.) */
57 /* #define WNOHANG 0x1 */
59 /* No need to use sprintf to get the tty name--we get that from _getpty. */
60 #ifdef PTY_TTY_NAME_SPRINTF
61 #undef PTY_TTY_NAME_SPRINTF
63 #define PTY_TTY_NAME_SPRINTF
64 /* No need to get the pty name at all. */
65 #ifdef PTY_NAME_SPRINTF
66 #undef PTY_NAME_SPRINTF
68 #define PTY_NAME_SPRINTF
72 /* We need only try once to open a pty. */
74 /* Here is how to do it. */
77 struct sigaction ocstat, cstat; \
79 sigemptyset(&cstat.sa_mask); \
80 cstat.sa_handler = SIG_DFL; \
82 sigaction(SIGCLD, &cstat, &ocstat); \
83 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
84 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
89 if (fstat (fd, &stb) < 0) \
91 strcpy (pty_name, name); \
94 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
98 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
99 #define GETPGRP_NO_ARG
101 /* Ulimit(UL_GMEMLIM) is busted... */
102 #define ULIMIT_BREAK_VALUE 0x14000000
104 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
107 /* define MAIL_USE_FLOCK if the mailer uses flock
108 to interlock access to /usr/spool/mail/$USER.
109 The alternative is that a lock file named
110 /usr/spool/mail/$USER.lock. */
112 #define MAIL_USE_FLOCK
114 /* -g used not to work on Irix unless you used gas, and since gcc
115 warns if you use it, turn off the warning. */
116 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
117 I'm not sure about Irix 5 -- fx */
119 #define C_DEBUG_SWITCH
122 #define NARROWPROTO 1
124 #define USE_MMAP_FOR_BUFFERS 1
126 /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b
127 (do not change this comment) */
130 #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
131 #define _LP64 /* lisp.h takes care of the rest */
132 #endif /* _MIPS_SZLONG */
134 /* The only supported 32-bit configuration of GCC under IRIX6.x produces
135 n32 MIPS ABI binaries and also supports -g. */
137 #undef C_DEBUG_SWITCH
138 #define C_DEBUG_SWITCH -g
140 /* Optimize, inaccurate debugging, increase limit on size of what's
143 This should also be applicable other than on Irix 6.5, but I don't
144 know for which compiler versions. -- fx */
145 #define C_DEBUG_SWITCH -g3 -O -OPT:Olimit=3500
150 #undef TIOCSIGSEND /* defined in usg5-4.h */
152 /* Tested on Irix 6.5. SCM worked on earlier versions. */
153 #define GC_SETJMP_WORKS 1
154 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
156 /* arch-tag: d7ad9ec2-54ad-4b2f-adf2-0070c5c63e83
157 (do not change this comment) */