annotate src/s/irix4-0.h @ 1658:452ba03935d7

* xterm.c (XTread_socket): When we get MapNotify, UnmapNotify, Expose, ExposeWindow, or UnmapWindow, set f->async_visible, not f->visible. (x_do_pending_expose, x_raise_frame, x_lower_frame, x_make_frame_invisible, x_make_frame_visible, x_iconify_frame): Test and set f->async_visible and f->async_iconified, not f->visible or f->async_iconified.
author Jim Blandy <jimb@redhat.com>
date Sun, 06 Dec 1992 22:22:09 +0000
parents b207a60243f6
children c4768d9b6a2f
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
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 /* Define HAVE_ALLOCA to say that the system provides a properly
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 working alloca function and it should be used. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 #define HAVE_ALLOCA
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 #undef C_ALLOCA
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 #define alloca __builtin_alloca
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 /* use K&R C */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 #define C_SWITCH_MACHINE -cckr
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 /* 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
15 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 we'll just define WNOHANG right here.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 (An implicit decl is good enough for wait3.) */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 #define WNOHANG 0x1
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 /* No need to use sprintf to get the tty name--we get that from _getpty. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 #define PTY_TTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 /* No need to get the pty name at all. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 #define PTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 #ifdef emacs
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 char *_get_pty();
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 #endif
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 /* We need only try once to open a pty. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #define PTY_ITERATION
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 /* Here is how to do it. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* It is necessary to prevent SIGCHLD signals within _getpty.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 So we block them. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 #define PTY_OPEN \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 { \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 int mask = sigblock (sigmask (SIGCHLD)); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 sigsetmask(mask); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 if (name == 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 if (fd < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 if (fstat (fd, &stb) < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 strcpy (pty_name, name); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 }