Mercurial > emacs
annotate src/s/irix5-0.h @ 13696:f89aa5a5c485
* etags.c (Cplusplus_suffixes): Add .M suffix for Objective C++.
(gperf): Added keywords for Objective C and GNU macros.
(sym_type): Added values to account for Objective C and GNU macros.
(begtk): The '@' character can start a token.
(objdef, methodlen, objtag): New variables for Objective C.
(consider_token, C_entries): Added code for Objective C.
(plain_C_suffixes): Add .m and .lm for Objective C.
(Yacc_suffixes): Add .ym for Objective yacc.
(GROW_LINEBUFFER): New macro.
(consider_token, C_entries, Pascal_functions): Use the new macro.
(consider_token): Take one more argument. Caller changed.
(consider_token): Use the hashing function to spot GNU macros.
(C_entries): Consider // as a comment start even in plain C for
the sake of Objective C parsing.
(pfnote): Don't make a tag for ctags if there is no name.
(getit, Asm_labels, Perl_functions, Pascal_functions, L_getit,
get_scheme, prolog_getit): Name the tag in ctags mode.
(pfnote): Truncate ctags lines to 50 chars, like it worked once.
(Perl_interpreters): Accept "@PERL@" as an interpreter.
(suggest_asking_for_help): New function.
(main, get_language_from_name): Use suggest_asking_for_help.
(main): Let get_language_from_name make language existence check.
(streq, strneq): Check the arguments #if DEBUG.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Thu, 07 Dec 1995 09:10:54 +0000 |
parents | 4e06c01054aa |
children | c653ea0f4abe |
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 |
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
5 #define SETPGRP_RELEASES_CTTY |
9a7ef5c29ab9
(IRIX5, SETPGRP_RELEASES_CTTY): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5143
diff
changeset
|
6 |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
7 #ifdef LIBS_SYSTEM |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
8 #undef LIBS_SYSTEM |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
9 #endif |
2890 | 10 |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
11 #ifdef LIB_STANDARD |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
12 #undef LIB_STANDARD |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
13 #endif |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
14 |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
15 #ifdef SYSTEM_TYPE |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
16 #undef SYSTEM_TYPE |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
17 #endif |
5191
414da6a99f69
(SYSTEM_TYPE): Make it "irix".
Richard M. Stallman <rms@gnu.org>
parents:
5182
diff
changeset
|
18 #define SYSTEM_TYPE "irix" |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
19 |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
20 #ifdef SETUP_SLAVE_PTY |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
21 #undef SETUP_SLAVE_PTY |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
22 #endif |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
23 |
5143
f051791645a2
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4608
diff
changeset
|
24 /* thomas@mathematik.uni-bremen.de says this is needed. */ |
f051791645a2
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4608
diff
changeset
|
25 /* 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
|
26 #define SIGNALS_VIA_CHARACTERS |
2890 | 27 |
28 /* Define HAVE_ALLOCA to say that the system provides a properly | |
29 working alloca function and it should be used. */ | |
30 #define HAVE_ALLOCA | |
31 #undef C_ALLOCA | |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
32 |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
33 #ifndef NOT_C_CODE |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
34 #ifndef __GNUC__ |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
35 #include <alloca.h> |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
36 #endif |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
37 #endif |
2890 | 38 |
39 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
40 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
41 we'll just define WNOHANG right here. | |
42 (An implicit decl is good enough for wait3.) */ | |
43 | |
2891
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
44 /* #define WNOHANG 0x1 */ |
2890 | 45 |
46 /* 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
|
47 #ifdef PTY_TTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
48 #undef PTY_TTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
49 #endif |
2890 | 50 #define PTY_TTY_NAME_SPRINTF |
51 /* 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
|
52 #ifdef PTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
53 #undef PTY_NAME_SPRINTF |
c10bb302a315
Changes for Silicon Graphics Iris 5D.
Jim Blandy <jimb@redhat.com>
parents:
2890
diff
changeset
|
54 #endif |
2890 | 55 #define PTY_NAME_SPRINTF |
56 #ifdef emacs | |
57 char *_getpty(); | |
58 #endif | |
59 /* We need only try once to open a pty. */ | |
60 #define PTY_ITERATION | |
61 /* Here is how to do it. */ | |
4237
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
62 #define PTY_OPEN \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
63 { \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
64 struct sigaction ocstat, cstat; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
65 char * name; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
66 sigemptyset(&cstat.sa_mask); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
67 cstat.sa_handler = SIG_DFL; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
68 cstat.sa_flags = 0; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
69 sigaction(SIGCLD, &cstat, &ocstat); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
70 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
|
71 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
72 if (name == 0) \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
73 return -1; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
74 if (fd < 0) \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
75 return -1; \ |
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
76 if (fstat (fd, &stb) < 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 strcpy (pty_name, name); \ |
2890 | 79 } |
4237
589ab12dbe3d
(PTY_OPEN): Use sigaction, not sigsetmask.
Richard M. Stallman <rms@gnu.org>
parents:
2891
diff
changeset
|
80 |
12075 | 81 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX |
82 throughout. */ | |
83 #define POSIX_SIGNALS | |
84 | |
4588
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
85 /* 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
|
86 on this system, so inhibit use of matherr. */ |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
87 #define NO_MATHERR |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
88 |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
89 /* 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
|
90 #define GETPGRP_NO_ARG |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
91 |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
92 /* Ulimit(UL_GMEMLIM) is busted... */ |
73d1d7d05a5a
Include alloca.h if appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
4237
diff
changeset
|
93 #define ULIMIT_BREAK_VALUE 0x14000000 |
7413
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
94 |
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
95 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ |
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5191
diff
changeset
|
96 #define PREFER_VSUSP |
8610
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
97 |
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
98 /* Because unexelfsgi.c cannot handle a ".sbss" section yet, we must |
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
99 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
|
100 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
|
101 #ifdef __GNUC__ |
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
102 #define LD_SWITCH_SYSTEM -G 0 |
0c4d14af9e65
[__GNUC__] (LD_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7413
diff
changeset
|
103 #endif |
9916
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
104 |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
105 /* define MAIL_USE_FLOCK if the mailer uses flock |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
106 to interlock access to /usr/spool/mail/$USER. |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
107 The alternative is that a lock file named |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
108 /usr/spool/mail/$USER.lock. */ |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
109 |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
110 #define MAIL_USE_FLOCK |
3014a91ade7a
(MAIL_USE_FLOCK): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8610
diff
changeset
|
111 |
10775
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
112 /* use K&R C */ |
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
113 #ifndef __GNUC__ |
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
114 #define C_SWITCH_SYSTEM -cckr |
a0fe869703c6
[__GNUC__] (C_SWITCH_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9916
diff
changeset
|
115 #endif |