Trailing whitespace deleted.
[bpt/emacs.git] / src / s / irix5-0.h
1 #include "usg5-4.h"
2
3 #define IRIX5
4
5 #undef sigsetmask /* use sys_sigsetmask */
6 #undef _longjmp /* use system versions, not conservative aliases */
7 #undef _setjmp
8
9 #define SETPGRP_RELEASES_CTTY
10
11 #ifdef LIBS_SYSTEM
12 #undef LIBS_SYSTEM
13 #endif
14
15 #ifdef LIB_STANDARD
16 #undef LIB_STANDARD
17 #endif
18
19 #ifdef SYSTEM_TYPE
20 #undef SYSTEM_TYPE
21 #endif
22 #define SYSTEM_TYPE "irix"
23
24 #ifdef SETUP_SLAVE_PTY
25 #undef SETUP_SLAVE_PTY
26 #endif
27
28 /* thomas@mathematik.uni-bremen.de says this is needed. */
29 /* Make process_send_signal work by "typing" a signal character on the pty. */
30 #define SIGNALS_VIA_CHARACTERS
31
32 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
33 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
34 we'll just define WNOHANG right here.
35 (An implicit decl is good enough for wait3.) */
36
37 /* #define WNOHANG 0x1 */
38
39 /* No need to use sprintf to get the tty name--we get that from _getpty. */
40 #ifdef PTY_TTY_NAME_SPRINTF
41 #undef PTY_TTY_NAME_SPRINTF
42 #endif
43 #define PTY_TTY_NAME_SPRINTF
44 /* No need to get the pty name at all. */
45 #ifdef PTY_NAME_SPRINTF
46 #undef PTY_NAME_SPRINTF
47 #endif
48 #define PTY_NAME_SPRINTF
49 #ifdef emacs
50 char *_getpty();
51 #endif
52 /* We need only try once to open a pty. */
53 #define PTY_ITERATION
54 /* Here is how to do it. */
55 #define PTY_OPEN \
56 { \
57 struct sigaction ocstat, cstat; \
58 char * name; \
59 sigemptyset(&cstat.sa_mask); \
60 cstat.sa_handler = SIG_DFL; \
61 cstat.sa_flags = 0; \
62 sigaction(SIGCLD, &cstat, &ocstat); \
63 name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
64 sigaction(SIGCLD, &ocstat, (struct sigaction *)0); \
65 if (name == 0) \
66 return -1; \
67 if (fd < 0) \
68 return -1; \
69 if (fstat (fd, &stb) < 0) \
70 return -1; \
71 strcpy (pty_name, name); \
72 }
73
74 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
75 throughout. */
76 #define POSIX_SIGNALS
77
78 /* Info from simon@lia.di.epfl.ch (Simon Leinen) suggests this is needed. */
79 #define GETPGRP_NO_ARG
80
81 /* Ulimit(UL_GMEMLIM) is busted... */
82 #define ULIMIT_BREAK_VALUE 0x14000000
83
84 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
85 #define PREFER_VSUSP
86
87 /* define MAIL_USE_FLOCK if the mailer uses flock
88 to interlock access to /usr/spool/mail/$USER.
89 The alternative is that a lock file named
90 /usr/spool/mail/$USER.lock. */
91
92 #define MAIL_USE_FLOCK
93
94 /* use K&R C */
95 #if 0
96 #ifndef __GNUC__
97 #define C_SWITCH_SYSTEM -cckr
98 #endif
99 #endif
100
101 /* -g used not to work on Irix unless you used gas, and since gcc
102 warns if you use it, turn off the warning. */
103 /* -g does now work, at least on recent Irix 6 versions with gcc 2.95;
104 I'm not sure about Irix 5 -- fx */
105 #ifdef __GNUC__
106 #define C_DEBUG_SWITCH
107 #endif
108
109 /* Prevent the variable ospeed from being defined by -lcurses
110 because it defines it with too few bytes. */
111 #define ospeed ospeed_
112
113 #define NARROWPROTO 1
114
115 #define USE_MMAP_FOR_BUFFERS 1