Commit | Line | Data |
---|---|---|
b7a11e21 RS |
1 | #include "usg5-4.h" |
2 | ||
aa724480 RS |
3 | #define IRIX5 |
4 | ||
99487ce4 RS |
5 | #undef sigsetmask /* use sys_sigsetmask */ |
6 | #undef _longjmp /* use system versions, not conservative aliases */ | |
177c0ea7 | 7 | #undef _setjmp |
22549f8b | 8 | |
aa724480 RS |
9 | #define SETPGRP_RELEASES_CTTY |
10 | ||
7260e339 JB |
11 | #ifdef LIBS_SYSTEM |
12 | #undef LIBS_SYSTEM | |
13 | #endif | |
14 | ||
b7a11e21 RS |
15 | #ifdef LIB_STANDARD |
16 | #undef LIB_STANDARD | |
17 | #endif | |
18 | ||
7260e339 JB |
19 | #ifdef SYSTEM_TYPE |
20 | #undef SYSTEM_TYPE | |
21 | #endif | |
0c98c572 | 22 | #define SYSTEM_TYPE "irix" |
7260e339 JB |
23 | |
24 | #ifdef SETUP_SLAVE_PTY | |
25 | #undef SETUP_SLAVE_PTY | |
26 | #endif | |
4ef37be4 | 27 | |
77fb57d8 RS |
28 | /* thomas@mathematik.uni-bremen.de says this is needed. */ |
29 | /* Make process_send_signal work by "typing" a signal character on the pty. */ | |
30 | #define SIGNALS_VIA_CHARACTERS | |
4ef37be4 | 31 | |
4ef37be4 JB |
32 | /* SGI has all the fancy wait stuff, but we can't include sys/wait.h |
33 | because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
34 | we'll just define WNOHANG right here. | |
35 | (An implicit decl is good enough for wait3.) */ | |
36 | ||
7260e339 | 37 | /* #define WNOHANG 0x1 */ |
4ef37be4 JB |
38 | |
39 | /* No need to use sprintf to get the tty name--we get that from _getpty. */ | |
7260e339 JB |
40 | #ifdef PTY_TTY_NAME_SPRINTF |
41 | #undef PTY_TTY_NAME_SPRINTF | |
42 | #endif | |
4ef37be4 JB |
43 | #define PTY_TTY_NAME_SPRINTF |
44 | /* No need to get the pty name at all. */ | |
7260e339 JB |
45 | #ifdef PTY_NAME_SPRINTF |
46 | #undef PTY_NAME_SPRINTF | |
47 | #endif | |
4ef37be4 JB |
48 | #define PTY_NAME_SPRINTF |
49 | #ifdef emacs | |
50 | char *_getpty(); | |
51 | #endif | |
52 | /* We need only try once to open a pty. */ | |
53 | #define PTY_ITERATION | |
54 | /* Here is how to do it. */ | |
6e27eb5e RS |
55 | #define PTY_OPEN \ |
56 | { \ | |
57 | struct sigaction ocstat, cstat; \ | |
58 | char * name; \ | |
59 | sigemptyset(&cstat.sa_mask); \ | |
60 | cstat.sa_handler = SIG_DFL; \ | |
61 | cstat.sa_flags = 0; \ | |
62 | sigaction(SIGCLD, &cstat, &ocstat); \ | |
63 | name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ | |
64 | sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \ | |
65 | if (name == 0) \ | |
66 | return -1; \ | |
67 | if (fd < 0) \ | |
68 | return -1; \ | |
69 | if (fstat (fd, &stb) < 0) \ | |
70 | return -1; \ | |
71 | strcpy (pty_name, name); \ | |
4ef37be4 | 72 | } |
6e27eb5e | 73 | |
434727b6 KH |
74 | /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX |
75 | throughout. */ | |
177c0ea7 | 76 | #define POSIX_SIGNALS |
434727b6 | 77 | |
b7a11e21 RS |
78 | /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */ |
79 | #define GETPGRP_NO_ARG | |
80 | ||
81 | /* Ulimit(UL_GMEMLIM) is busted... */ | |
82 | #define ULIMIT_BREAK_VALUE 0x14000000 | |
882d8079 RS |
83 | |
84 | /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ | |
85 | #define PREFER_VSUSP | |
0d55a560 | 86 | |
503ffb1e RS |
87 | /* define MAIL_USE_FLOCK if the mailer uses flock |
88 | to interlock access to /usr/spool/mail/$USER. | |
89 | The alternative is that a lock file named | |
90 | /usr/spool/mail/$USER.lock. */ | |
91 | ||
92 | #define MAIL_USE_FLOCK | |
93 | ||
001e1e47 | 94 | /* use K&R C */ |
9482c3ea | 95 | #if 0 |
001e1e47 RS |
96 | #ifndef __GNUC__ |
97 | #define C_SWITCH_SYSTEM -cckr | |
98 | #endif | |
9482c3ea | 99 | #endif |
87850793 | 100 | |
df7c0cb4 DL |
101 | /* -g used not to work on Irix unless you used gas, and since gcc |
102 | warns if you use it, turn off the warning. */ | |
103 | /* -g does now work, at least on recent Irix 6 versions with gcc 2.95; | |
104 | I'm not sure about Irix 5 -- fx */ | |
87850793 KH |
105 | #ifdef __GNUC__ |
106 | #define C_DEBUG_SWITCH | |
107 | #endif | |
55ac4e93 RS |
108 | |
109 | /* Prevent the variable ospeed from being defined by -lcurses | |
110 | because it defines it with too few bytes. */ | |
111 | #define ospeed ospeed_ | |
2327e4a0 GM |
112 | |
113 | #define NARROWPROTO 1 | |
114 | ||
67cdbf16 | 115 | #define USE_MMAP_FOR_BUFFERS 1 |
6b61353c KH |
116 | |
117 | /* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b | |
118 | (do not change this comment) */ |