* configure.in (BROKEN_SA_RESTART): Doc fix.
[bpt/emacs.git] / src / s / irix6-5.h
CommitLineData
3423be79
GM
1/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5.
2
acaf905b 3Copyright (C) 1999-2012 Free Software Foundation, Inc.
3423be79
GM
4
5This file is part of GNU Emacs.
6
4b158629 7GNU Emacs is free software: you can redistribute it and/or modify
3423be79 8it under the terms of the GNU General Public License as published by
4b158629
GM
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
3423be79
GM
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
4b158629 18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
3423be79
GM
19
20
7fa3ed62 21#define IRIX6_5 /* used in m/iris4d */
1b231651 22#include "usg5-4-common.h"
9d2818d6 23
9d2818d6
DN
24#undef _longjmp /* use system versions, not conservative aliases */
25#undef _setjmp
26
27#define SETPGRP_RELEASES_CTTY
28
9d2818d6
DN
29#ifdef SETUP_SLAVE_PTY
30#undef SETUP_SLAVE_PTY
31#endif
32
33/* thomas@mathematik.uni-bremen.de says this is needed. */
34/* Make process_send_signal work by "typing" a signal character on the pty. */
35#define SIGNALS_VIA_CHARACTERS
36
c3a398a1 37/* Letter to use in finding device name of first pty,
e05aebe9 38 if system supports pty's. 'a' means it is /dev/ptya0 */
c3a398a1
DN
39#undef FIRST_PTY_LETTER
40#define FIRST_PTY_LETTER 'q'
41
9d2818d6 42/* No need to use sprintf to get the tty name--we get that from _getpty. */
9d2818d6
DN
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
47#endif
48#define PTY_NAME_SPRINTF
49#ifdef emacs
50char *_getpty();
51#endif
52/* We need only try once to open a pty. */
53#define PTY_ITERATION
54/* Here is how to do it. */
55#define PTY_OPEN \
56{ \
57 struct sigaction ocstat, cstat; \
57048744 58 struct stat stb; \
9d2818d6
DN
59 char * name; \
60 sigemptyset(&cstat.sa_mask); \
61 cstat.sa_handler = SIG_DFL; \
62 cstat.sa_flags = 0; \
63 sigaction(SIGCLD, &cstat, &ocstat); \
64 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
65 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
66 if (name == 0) \
67 return -1; \
68 if (fd < 0) \
69 return -1; \
70 if (fstat (fd, &stb) < 0) \
71 return -1; \
72 strcpy (pty_name, name); \
73}
74
9d2818d6
DN
75/* Ulimit(UL_GMEMLIM) is busted... */
76#define ULIMIT_BREAK_VALUE 0x14000000
77
78/* Tell process_send_signal to use VSUSP instead of VSWTCH. */
79#define PREFER_VSUSP
80
9d2818d6
DN
81#define NARROWPROTO 1
82
41f9404e 83#undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */
808903ab 84
1b231651 85#undef TIOCSIGSEND /* defined in usg5-4-common.h */
ab5796a9 86
77c0df4f
RS
87/* Tested on Irix 6.5. SCM worked on earlier versions. */
88#define GC_SETJMP_WORKS 1
76b397fb
DN
89
90
91/* DATA_SEG_BITS forces extra bits to be or'd in with any pointers which
92 were stored in a Lisp_Object (as Emacs uses fewer than 32 bits for
93 the value field of a LISP_OBJECT). */
94#define DATA_START 0x10000000
95#define DATA_SEG_BITS 0x10000000