annotate src/s/irix4-0.h @ 49374:4d1d2489581e

2003-01-21 David Ponce <david@dponce.com> * emacs.rc (32649): Declare hand cursor resource.
author Jason Rumney <jasonr@gnu.org>
date Tue, 21 Jan 2003 23:13:55 +0000
parents f93e5481ac9d
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #include "irix3-3.h"
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 #define USG5_3
3305
47c0b5462b2d (IRIX4): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3111
diff changeset
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
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
3098
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
8 #undef NEED_SIOCTL
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
10077
ee5e9fbcd051 (NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
10 /* 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
11 #define NEED_UNISTD_H
ee5e9fbcd051 (NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
12
3111
864024ebf526 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3098
diff changeset
13 /* 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
14 #define SIGNALS_VIA_CHARACTERS
864024ebf526 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3098
diff changeset
15
18702
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
16 #ifndef __GNUC__
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 /* use K&R C */
18702
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
18 /* 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
19 (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
20 */
23843
b250f3dae8d9 (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
Karl Heuer <kwzh@gnu.org>
parents: 18759
diff changeset
21 #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
22 #endif
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 we'll just define WNOHANG right here.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 (An implicit decl is good enough for wait3.) */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #define WNOHANG 0x1
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* 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
32 #undef PTY_TTY_NAME_SPRINTF
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 #define PTY_TTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 /* No need to get the pty name at all. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 #define PTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 /* We need only try once to open a pty. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 #define PTY_ITERATION
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 /* Here is how to do it. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 /* It is necessary to prevent SIGCHLD signals within _getpty.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 So we block them. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 #define PTY_OPEN \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 { \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 int mask = sigblock (sigmask (SIGCHLD)); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 sigsetmask(mask); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 if (name == 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48 if (fd < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 if (fstat (fd, &stb) < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 strcpy (pty_name, name); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 }