Mercurial > hg > xemacs-beta
comparison src/systty.h @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | c5d627a313b1 |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
51 #undef PENDIN | 51 #undef PENDIN |
52 #endif | 52 #endif |
53 | 53 |
54 /* Include the proper files. */ | 54 /* Include the proper files. */ |
55 | 55 |
56 #ifdef HAVE_UNISTD_H | |
57 #include <unistd.h> | |
58 #endif | |
59 | |
56 /* XEmacs: TERMIOS is mo' better than TERMIO so we use it if it's | 60 /* XEmacs: TERMIOS is mo' better than TERMIO so we use it if it's |
57 there. Since TERMIO is backward-compatibility stuff if both it | 61 there. Since TERMIO is backward-compatibility stuff if both it |
58 and TERMIOS exist, it's more likely to be broken. */ | 62 and TERMIOS exist, it's more likely to be broken. */ |
59 | 63 |
60 #if defined (HAVE_TERMIOS) | 64 #if defined (HAVE_TERMIOS) |
191 #ifdef BROKEN_TIOCGWINSZ /* XEmacs addition */ | 195 #ifdef BROKEN_TIOCGWINSZ /* XEmacs addition */ |
192 #undef TIOCGWINSZ | 196 #undef TIOCGWINSZ |
193 #undef TIOCSWINSZ | 197 #undef TIOCSWINSZ |
194 #endif | 198 #endif |
195 | 199 |
196 #ifdef BROKEN_O_NONBLOCK /* XEmacs addition */ | |
197 # undef O_NONBLOCK | |
198 #endif /* BROKEN_O_NONBLOCK */ | |
199 | |
200 /* On TERMIOS systems, the tcmumbleattr calls take care of these | 200 /* On TERMIOS systems, the tcmumbleattr calls take care of these |
201 parameters, and it's a bad idea to use them (on AIX, it makes the | 201 parameters, and it's a bad idea to use them (on AIX, it makes the |
202 tty hang for a long time). */ | 202 tty hang for a long time). */ |
203 #if defined (TIOCGLTC) && !defined (HAVE_TERMIOS) | 203 #if defined (TIOCGLTC) && !defined (HAVE_TERMIOS) |
204 #define HAVE_LTCHARS | 204 #define HAVE_LTCHARS |
212 /* ----------------------------------------------------- */ | 212 /* ----------------------------------------------------- */ |
213 /* disabling terminal functions */ | 213 /* disabling terminal functions */ |
214 /* ----------------------------------------------------- */ | 214 /* ----------------------------------------------------- */ |
215 | 215 |
216 /* Try to establish the correct character to disable terminal functions | 216 /* Try to establish the correct character to disable terminal functions |
217 in a system-independent manner. Note that USG (at least) define | 217 in a system-independent manner. |
218 _POSIX_VDISABLE as 0! */ | 218 We use the POSIX standard way to do this, and emulate on other systems. */ |
219 | 219 |
220 #ifdef _POSIX_VDISABLE | 220 #ifndef _POSIX_VDISABLE |
221 #define CDISABLE _POSIX_VDISABLE | 221 # if defined CDEL |
222 #else /* not _POSIX_VDISABLE */ | 222 # define _POSIX_VDISABLE CDEL |
223 #ifdef CDEL | 223 # else |
224 #undef CDISABLE | 224 # define _POSIX_VDISABLE 255 |
225 #define CDISABLE CDEL | 225 # endif |
226 #else /* not CDEL */ | 226 #endif /* ! _POSIX_VDISABLE */ |
227 #define CDISABLE 255 | |
228 #endif /* not CDEL */ | |
229 #endif /* not _POSIX_VDISABLE */ | |
230 | 227 |
231 | 228 |
232 /* ----------------------------------------------------- */ | 229 /* ----------------------------------------------------- */ |
233 /* Get the number of characters queued for output */ | 230 /* Get the number of characters queued for output */ |
234 /* ----------------------------------------------------- */ | 231 /* ----------------------------------------------------- */ |