(file-name-buffer-file-type-alist): Load TAGS files as text, not binary.
[emacs.git] / src / s / irix5-0.h
blob31754342d59aaa8fe15806adf9e38cd4acb74b2f
1 #include "usg5-4.h"
3 #define IRIX5
5 /* We want BSD style signals. */
6 #define _BSD_SIGNALS
8 #define SETPGRP_RELEASES_CTTY
10 #ifdef LIBS_SYSTEM
11 #undef LIBS_SYSTEM
12 #endif
14 #ifdef LIB_STANDARD
15 #undef LIB_STANDARD
16 #endif
18 #ifdef SYSTEM_TYPE
19 #undef SYSTEM_TYPE
20 #endif
21 #define SYSTEM_TYPE "irix"
23 #ifdef SETUP_SLAVE_PTY
24 #undef SETUP_SLAVE_PTY
25 #endif
27 /* thomas@mathematik.uni-bremen.de says this is needed. */
28 /* Make process_send_signal work by "typing" a signal character on the pty. */
29 #define SIGNALS_VIA_CHARACTERS
31 /* Define HAVE_ALLOCA to say that the system provides a properly
32 working alloca function and it should be used. */
33 #define HAVE_ALLOCA
34 #undef C_ALLOCA
36 #ifndef NOT_C_CODE
37 #ifndef __GNUC__
38 #include <alloca.h>
39 #endif
40 #endif
42 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
43 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
44 we'll just define WNOHANG right here.
45 (An implicit decl is good enough for wait3.) */
47 /* #define WNOHANG 0x1 */
49 /* No need to use sprintf to get the tty name--we get that from _getpty. */
50 #ifdef PTY_TTY_NAME_SPRINTF
51 #undef PTY_TTY_NAME_SPRINTF
52 #endif
53 #define PTY_TTY_NAME_SPRINTF
54 /* No need to get the pty name at all. */
55 #ifdef PTY_NAME_SPRINTF
56 #undef PTY_NAME_SPRINTF
57 #endif
58 #define PTY_NAME_SPRINTF
59 #ifdef emacs
60 char *_getpty();
61 #endif
62 /* We need only try once to open a pty. */
63 #define PTY_ITERATION
64 /* Here is how to do it. */
65 #define PTY_OPEN \
66 { \
67 struct sigaction ocstat, cstat; \
68 char * name; \
69 sigemptyset(&cstat.sa_mask); \
70 cstat.sa_handler = SIG_DFL; \
71 cstat.sa_flags = 0; \
72 sigaction(SIGCLD, &cstat, &ocstat); \
73 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
74 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
75 if (name == 0) \
76 return -1; \
77 if (fd < 0) \
78 return -1; \
79 if (fstat (fd, &stb) < 0) \
80 return -1; \
81 strcpy (pty_name, name); \
84 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
85 throughout. */
86 #define POSIX_SIGNALS
88 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
89 on this system, so inhibit use of matherr. */
90 #define NO_MATHERR
92 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
93 #define GETPGRP_NO_ARG
95 /* Ulimit(UL_GMEMLIM) is busted... */
96 #define ULIMIT_BREAK_VALUE 0x14000000
98 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
99 #define PREFER_VSUSP
101 /* Because unexsgi.c cannot handle a ".sbss" section yet, we must
102 tell the linker to avoid making one. SGI's cc does this by
103 default, but GCC (at least 2.5.8 and 2.6.0) doesn't. */
104 #ifdef __GNUC__
105 #define LD_SWITCH_SYSTEM -G 0
106 #endif
108 /* define MAIL_USE_FLOCK if the mailer uses flock
109 to interlock access to /usr/spool/mail/$USER.
110 The alternative is that a lock file named
111 /usr/spool/mail/$USER.lock. */
113 #define MAIL_USE_FLOCK
115 /* use K&R C */
116 #ifndef __GNUC__
117 #define C_SWITCH_SYSTEM -cckr
118 #endif
120 /* -g does not work on Irix, and since gcc warns if you use it,
121 turn off the warning. */
122 #ifdef __GNUC__
123 #define C_DEBUG_SWITCH
124 #endif