Mercurial > emacs
annotate src/s/irix4-0.h @ 46945:f9938287430f
*** empty log message ***
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 19 Aug 2002 06:39:33 +0000 |
parents | 4be8406ebef9 |
children | f93e5481ac9d |
rev | line source |
---|---|
1493 | 1 #include "irix3-3.h" |
2 | |
3 #define USG5_3 | |
3305 | 4 #define IRIX4 |
18759
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
5 /* XPointer is not defined in the older X headers -- JPff@maths.bath.ac.uk */ |
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
6 #define XPointer caddr_t |
1493 | 7 |
3098
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
8 #ifndef NOT_C_CODE |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
9 #include <alloca.h> |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
10 #endif |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
11 |
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
12 #undef NEED_SIOCTL |
1493 | 13 |
10077
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
14 /* Include unistd.h, even though we don't define POSIX. */ |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
15 #define NEED_UNISTD_H |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
16 |
3111
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
17 /* Make process_send_signal work by "typing" a signal character on the pty. */ |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
18 #define SIGNALS_VIA_CHARACTERS |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
19 |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
20 #ifndef __GNUC__ |
1493 | 21 /* use K&R C */ |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
22 /* We need to increase the expression tree space with -Wf,-XNh |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
23 (ghazi@caip.rutgers.edu 7/8/97.) |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
24 */ |
23843
b250f3dae8d9
(C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
Karl Heuer <kwzh@gnu.org>
parents:
18759
diff
changeset
|
25 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh4000 |
1856
c4768d9b6a2f
(C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1493
diff
changeset
|
26 #endif |
1493 | 27 |
28 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
29 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
30 we'll just define WNOHANG right here. | |
31 (An implicit decl is good enough for wait3.) */ | |
32 | |
33 #define WNOHANG 0x1 | |
34 | |
35 /* No need to use sprintf to get the tty name--we get that from _getpty. */ | |
2992
8c74c4712164
Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
Jim Blandy <jimb@redhat.com>
parents:
2223
diff
changeset
|
36 #undef PTY_TTY_NAME_SPRINTF |
1493 | 37 #define PTY_TTY_NAME_SPRINTF |
38 /* No need to get the pty name at all. */ | |
39 #define PTY_NAME_SPRINTF | |
40 /* We need only try once to open a pty. */ | |
41 #define PTY_ITERATION | |
42 /* Here is how to do it. */ | |
43 /* It is necessary to prevent SIGCHLD signals within _getpty. | |
44 So we block them. */ | |
45 #define PTY_OPEN \ | |
46 { \ | |
47 int mask = sigblock (sigmask (SIGCHLD)); \ | |
48 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ | |
49 sigsetmask(mask); \ | |
50 if (name == 0) \ | |
51 return -1; \ | |
52 if (fd < 0) \ | |
53 return -1; \ | |
54 if (fstat (fd, &stb) < 0) \ | |
55 return -1; \ | |
56 strcpy (pty_name, name); \ | |
57 } |