annotate src/s/irix5-0.h @ 19879:87952270ceeb

(ps-emacs-face-kind-p): Function deleted. (ps-face-bold-p, ps-face-italic-p): Check ps-bold-faces or ps-italic-faces. (ps-zebra-stripes, ps-zebra-stripe-height): Doc fixes. (ps-line-lengths, ps-nb-pages-buffer, ps-nb-pages-region, ps-setup): Doc fixes.
author Richard M. Stallman <rms@gnu.org>
date Thu, 11 Sep 1997 23:51:29 +0000
parents 19f6e851937e
children ae314c884db0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4588
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
1 #include "usg5-4.h"
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
2
5182
9a7ef5c29ab9 (IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5143
diff changeset
3 #define IRIX5
9a7ef5c29ab9 (IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5143
diff changeset
4
16337
65db047f1886 (sigsetmask, _longjmp, _setjmp): #undef them.
Richard M. Stallman <rms@gnu.org>
parents: 15731
diff changeset
5 #undef sigsetmask /* use sys_sigsetmask */
65db047f1886 (sigsetmask, _longjmp, _setjmp): #undef them.
Richard M. Stallman <rms@gnu.org>
parents: 15731
diff changeset
6 #undef _longjmp /* use system versions, not conservative aliases */
65db047f1886 (sigsetmask, _longjmp, _setjmp): #undef them.
Richard M. Stallman <rms@gnu.org>
parents: 15731
diff changeset
7 #undef _setjmp
15731
d149a26c9109 (_BSD_SIGNALS): Define.
Karl Heuer <kwzh@gnu.org>
parents: 15646
diff changeset
8
5182
9a7ef5c29ab9 (IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5143
diff changeset
9 #define SETPGRP_RELEASES_CTTY
9a7ef5c29ab9 (IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5143
diff changeset
10
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
11 #ifdef LIBS_SYSTEM
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
12 #undef LIBS_SYSTEM
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
13 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14
4588
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
15 #ifdef LIB_STANDARD
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
16 #undef LIB_STANDARD
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
17 #endif
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
18
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
19 #ifdef SYSTEM_TYPE
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
20 #undef SYSTEM_TYPE
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
21 #endif
5191
414da6a99f69 (SYSTEM_TYPE): Make it "irix".
Richard M. Stallman <rms@gnu.org>
parents: 5182
diff changeset
22 #define SYSTEM_TYPE "irix"
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
23
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
24 #ifdef SETUP_SLAVE_PTY
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
25 #undef SETUP_SLAVE_PTY
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
26 #endif
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
27
5143
f051791645a2 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4608
diff changeset
28 /* thomas@mathematik.uni-bremen.de says this is needed. */
f051791645a2 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4608
diff changeset
29 /* Make process_send_signal work by "typing" a signal character on the pty. */
f051791645a2 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4608
diff changeset
30 #define SIGNALS_VIA_CHARACTERS
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 /* Define HAVE_ALLOCA to say that the system provides a properly
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 working alloca function and it should be used. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 #define HAVE_ALLOCA
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 #undef C_ALLOCA
4588
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
36
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
37 #ifndef NOT_C_CODE
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
38 #ifndef __GNUC__
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
39 #include <alloca.h>
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
40 #endif
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
41 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 /* 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
44 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 we'll just define WNOHANG right here.
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 (An implicit decl is good enough for wait3.) */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47
2891
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
48 /* #define WNOHANG 0x1 */
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 /* 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
51 #ifdef PTY_TTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
52 #undef PTY_TTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
53 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 #define PTY_TTY_NAME_SPRINTF
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 /* 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
56 #ifdef PTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
57 #undef PTY_NAME_SPRINTF
c10bb302a315 Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents: 2890
diff changeset
58 #endif
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 #define PTY_NAME_SPRINTF
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 #ifdef emacs
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 char *_getpty();
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 #endif
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 /* We need only try once to open a pty. */
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 #define PTY_ITERATION
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65 /* Here is how to do it. */
4237
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
66 #define PTY_OPEN \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
67 { \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
68 struct sigaction ocstat, cstat; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
69 char * name; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
70 sigemptyset(&cstat.sa_mask); \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
71 cstat.sa_handler = SIG_DFL; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
72 cstat.sa_flags = 0; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
73 sigaction(SIGCLD, &cstat, &ocstat); \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
74 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
75 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
76 if (name == 0) \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
77 return -1; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
78 if (fd < 0) \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
79 return -1; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
80 if (fstat (fd, &stb) < 0) \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
81 return -1; \
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
82 strcpy (pty_name, name); \
2890
70a7f2829225 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83 }
4237
589ab12dbe3d (PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents: 2891
diff changeset
84
12075
4e06c01054aa Comment fix.
Karl Heuer <kwzh@gnu.org>
parents: 10775
diff changeset
85 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
4e06c01054aa Comment fix.
Karl Heuer <kwzh@gnu.org>
parents: 10775
diff changeset
86 throughout. */
4e06c01054aa Comment fix.
Karl Heuer <kwzh@gnu.org>
parents: 10775
diff changeset
87 #define POSIX_SIGNALS
4e06c01054aa Comment fix.
Karl Heuer <kwzh@gnu.org>
parents: 10775
diff changeset
88
4588
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
89 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
90 on this system, so inhibit use of matherr. */
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
91 #define NO_MATHERR
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
92
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
93 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
94 #define GETPGRP_NO_ARG
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
95
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
96 /* Ulimit(UL_GMEMLIM) is busted... */
73d1d7d05a5a Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 4237
diff changeset
97 #define ULIMIT_BREAK_VALUE 0x14000000
7413
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5191
diff changeset
98
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5191
diff changeset
99 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5191
diff changeset
100 #define PREFER_VSUSP
8610
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
101
14254
c653ea0f4abe Comment fixes.
Karl Heuer <kwzh@gnu.org>
parents: 12075
diff changeset
102 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
8610
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
103 tell the linker to avoid making one. SGI's cc does this by
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
104 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
105 #ifdef __GNUC__
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
106 #define LD_SWITCH_SYSTEM -G 0
0c4d14af9e65 [__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7413
diff changeset
107 #endif
9916
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
108
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
109 /* define MAIL_USE_FLOCK if the mailer uses flock
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
110 to interlock access to /usr/spool/mail/$USER.
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
111 The alternative is that a lock file named
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
112 /usr/spool/mail/$USER.lock. */
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
113
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
114 #define MAIL_USE_FLOCK
3014a91ade7a (MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8610
diff changeset
115
10775
a0fe869703c6 [__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9916
diff changeset
116 /* use K&R C */
a0fe869703c6 [__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9916
diff changeset
117 #ifndef __GNUC__
a0fe869703c6 [__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9916
diff changeset
118 #define C_SWITCH_SYSTEM -cckr
a0fe869703c6 [__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9916
diff changeset
119 #endif
15646
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
120
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
121 /* -g does not work on Irix, and since gcc warns if you use it,
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
122 turn off the warning. */
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
123 #ifdef __GNUC__
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
124 #define C_DEBUG_SWITCH
6f12a8d1dad6 [__GNUC__] (C_DEBUG_SWITCH): New definition.
Karl Heuer <kwzh@gnu.org>
parents: 14254
diff changeset
125 #endif
16376
19f6e851937e (ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16337
diff changeset
126
19f6e851937e (ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16337
diff changeset
127 /* Prevent the variable ospeed from being defined by -lcurses
19f6e851937e (ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16337
diff changeset
128 because it defines it with too few bytes. */
19f6e851937e (ospeed): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 16337
diff changeset
129 #define ospeed ospeed_