annotate src/s/irix5-0.h @ 3613:f37a9c897699

* scroll-bar.el (scroll-bar-mode): Variable deleted. (scroll-bar-mode): Function changed to consult default-frame-alist instead of the variable.
author Jim Blandy <jimb@redhat.com>
date Thu, 10 Jun 1993 12:18:36 +0000
parents c10bb302a315
children 589ab12dbe3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
1 #include "s-usg5-4.h"
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
2 #ifdef LIBS_SYSTEM
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
3 #undef LIBS_SYSTEM
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
4 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
6 #ifdef SYSTEM_TYPE
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
7 #undef SYSTEM_TYPE
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
8 #endif
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
9 #define SYSTEM_TYPE "silicon-graphics-unix"
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
10
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
11 #ifdef SETUP_SLAVE_PTY
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
12 #undef SETUP_SLAVE_PTY
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
13 #endif
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
14
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 /* Define HAVE_ALLOCA to say that the system provides a properly
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 working alloca function and it should be used. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 #define HAVE_ALLOCA
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19 #undef C_ALLOCA
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20 #define alloca __builtin_alloca
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 /* use K&R C */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 #ifndef __GNUC__
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 #define C_SWITCH_MACHINE -cckr
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 #endif
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 we'll just define WNOHANG right here.
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 (An implicit decl is good enough for wait3.) */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
32 /* #define WNOHANG 0x1 */
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 /* No need to use sprintf to get the tty name--we get that from _getpty. */
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
35 #ifdef PTY_TTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
36 #undef PTY_TTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
37 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 #define PTY_TTY_NAME_SPRINTF
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 /* No need to get the pty name at all. */
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
40 #ifdef PTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
41 #undef PTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
42 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 #define PTY_NAME_SPRINTF
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 #ifdef emacs
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 char *_getpty();
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 #endif
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 /* We need only try once to open a pty. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 #define PTY_ITERATION
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 /* Here is how to do it. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 /* It is necessary to prevent SIGCHLD signals within _getpty.
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 So we block them. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 #define PTY_OPEN \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 { \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 int mask = sigblock (sigmask (SIGCHLD)); \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56 sigsetmask(mask); \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 if (name == 0) \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 return -1; \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 if (fd < 0) \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 return -1; \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 if (fstat (fd, &stb) < 0) \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 return -1; \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 strcpy (pty_name, name); \
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 }