annotate src/s/irix6-5.h @ 111945:c00190a8c8ef

Merge from emacs-23
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 13 Dec 2010 10:27:36 -0500
parents 63e95c4f28f0
children 417b1e4d63cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75964
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
1 /* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5.
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
2
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92159
diff changeset
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100951
diff changeset
4 2008, 2009, 2010 Free Software Foundation, Inc.
75964
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
5
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
6 This file is part of GNU Emacs.
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
7
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92159
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
75964
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
9 it under the terms of the GNU General Public License as published by
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92159
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92159
diff changeset
11 (at your option) any later version.
75964
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
12
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
16 GNU General Public License for more details.
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
17
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
18 You should have received a copy of the GNU General Public License
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92159
diff changeset
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
75964
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
20
aeeef59c6f71 Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 68263
diff changeset
21
48081
930c3f92138a Don't include strings.h.
Dave Love <fx@gnu.org>
parents: 34612
diff changeset
22 #define IRIX6_5 /* used in m/iris4d */
109584
63e95c4f28f0 Rename s/usg5-4.h -> s/usg5-4-common.h.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 109073
diff changeset
23 #include "usg5-4-common.h"
92159
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
24
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
25 #undef _longjmp /* use system versions, not conservative aliases */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
26 #undef _setjmp
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
27
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
28 #define SETPGRP_RELEASES_CTTY
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
29
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
30 #ifdef SYSTEM_TYPE
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
31 #undef SYSTEM_TYPE
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
32 #endif
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
33 #define SYSTEM_TYPE "irix"
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
34
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
35 #ifdef SETUP_SLAVE_PTY
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
36 #undef SETUP_SLAVE_PTY
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
37 #endif
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
38
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
39 /* thomas@mathematik.uni-bremen.de says this is needed. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
40 /* Make process_send_signal work by "typing" a signal character on the pty. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
41 #define SIGNALS_VIA_CHARACTERS
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
42
108206
d37472566980 Clean up IRIX code.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107796
diff changeset
43 /* Letter to use in finding device name of first pty,
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108379
diff changeset
44 if system supports pty's. 'a' means it is /dev/ptya0 */
108206
d37472566980 Clean up IRIX code.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107796
diff changeset
45 #undef FIRST_PTY_LETTER
d37472566980 Clean up IRIX code.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107796
diff changeset
46 #define FIRST_PTY_LETTER 'q'
d37472566980 Clean up IRIX code.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107796
diff changeset
47
92159
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
48 /* No need to use sprintf to get the tty name--we get that from _getpty. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
49 #define PTY_TTY_NAME_SPRINTF
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
50 /* No need to get the pty name at all. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
51 #ifdef PTY_NAME_SPRINTF
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
52 #undef PTY_NAME_SPRINTF
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
53 #endif
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
54 #define PTY_NAME_SPRINTF
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
55 #ifdef emacs
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
56 char *_getpty();
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
57 #endif
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
58 /* We need only try once to open a pty. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
59 #define PTY_ITERATION
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
60 /* Here is how to do it. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
61 #define PTY_OPEN \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
62 { \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
63 struct sigaction ocstat, cstat; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
64 char * name; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
65 sigemptyset(&cstat.sa_mask); \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
66 cstat.sa_handler = SIG_DFL; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
67 cstat.sa_flags = 0; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
68 sigaction(SIGCLD, &cstat, &ocstat); \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
69 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
70 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
71 if (name == 0) \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
72 return -1; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
73 if (fd < 0) \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
74 return -1; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
75 if (fstat (fd, &stb) < 0) \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
76 return -1; \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
77 strcpy (pty_name, name); \
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
78 }
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
79
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
80 /* Ulimit(UL_GMEMLIM) is busted... */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
81 #define ULIMIT_BREAK_VALUE 0x14000000
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
82
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
83 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
84 #define PREFER_VSUSP
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
85
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
86 #define NARROWPROTO 1
9ed7610349d3 * configure.in: Remove references to obsolete variables and
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79756
diff changeset
87
30505
a0367b506722 (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents: 27490
diff changeset
88 #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
31925
b52aacb6e2c4 Now works 64-bit. Tidied.
Dave Love <fx@gnu.org>
parents: 30505
diff changeset
89 #define _LP64 /* lisp.h takes care of the rest */
30505
a0367b506722 (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents: 27490
diff changeset
90 #endif /* _MIPS_SZLONG */
23913
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
91
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
92 #undef SA_RESTART
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
93
109584
63e95c4f28f0 Rename s/usg5-4.h -> s/usg5-4-common.h.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 109073
diff changeset
94 #undef TIOCSIGSEND /* defined in usg5-4-common.h */
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48081
diff changeset
95
68263
06d1688690ad (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
96 /* Tested on Irix 6.5. SCM worked on earlier versions. */
06d1688690ad (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
97 #define GC_SETJMP_WORKS 1
06d1688690ad (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
98 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
06d1688690ad (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
99
108379
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108310
diff changeset
100 /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108310
diff changeset
101 (do not change this comment) */
203aa49071bf Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108310
diff changeset
102
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48081
diff changeset
103 /* arch-tag: d7ad9ec2-54ad-4b2f-adf2-0070c5c63e83
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48081
diff changeset
104 (do not change this comment) */