Move SIGNALS_VIA_CHARACTERS from src/s to configure
[bpt/emacs.git] / src / s / irix6-5.h
1 /* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5.
2
3 Copyright (C) 1999-2012 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21 #define IRIX6_5 /* used in m/iris4d */
22 #include "usg5-4-common.h"
23
24 #undef _longjmp /* use system versions, not conservative aliases */
25 #undef _setjmp
26
27 #define SETPGRP_RELEASES_CTTY
28
29 #undef SETUP_SLAVE_PTY
30
31 /* Letter to use in finding device name of first pty,
32 if system supports pty's. 'a' means it is /dev/ptya0 */
33 #undef FIRST_PTY_LETTER
34 #define FIRST_PTY_LETTER 'q'
35
36 /* No need to use sprintf to get the tty name--we get that from _getpty. */
37 #define PTY_TTY_NAME_SPRINTF
38 /* No need to get the pty name at all. */
39 #undef PTY_NAME_SPRINTF
40 #define PTY_NAME_SPRINTF
41 #ifdef emacs
42 char *_getpty();
43 #endif
44 /* We need only try once to open a pty. */
45 #define PTY_ITERATION
46 /* Here is how to do it. */
47 #define PTY_OPEN \
48 { \
49 struct sigaction ocstat, cstat; \
50 struct stat stb; \
51 char * name; \
52 sigemptyset(&cstat.sa_mask); \
53 cstat.sa_handler = SIG_DFL; \
54 cstat.sa_flags = 0; \
55 sigaction(SIGCLD, &cstat, &ocstat); \
56 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
57 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
58 if (name == 0) \
59 return -1; \
60 if (fd < 0) \
61 return -1; \
62 if (fstat (fd, &stb) < 0) \
63 return -1; \
64 strcpy (pty_name, name); \
65 }
66
67 /* Ulimit(UL_GMEMLIM) is busted... */
68 #define ULIMIT_BREAK_VALUE 0x14000000
69
70 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
71 #define PREFER_VSUSP
72
73 #define NARROWPROTO 1
74
75 #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */
76
77 #undef TIOCSIGSEND /* defined in usg5-4-common.h */
78
79 /* Tested on Irix 6.5. SCM worked on earlier versions. */
80 #define GC_SETJMP_WORKS 1