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