comparison src/systty.h @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 74fd4e045ea6
children 697ef44129c6
comparison
equal deleted inserted replaced
409:301b9ebbdf3b 410:de805c49cfc1
92 # ifndef INCLUDED_FCNTL 92 # ifndef INCLUDED_FCNTL
93 # define INCLUDED_FCNTL 93 # define INCLUDED_FCNTL
94 # include <fcntl.h> 94 # include <fcntl.h>
95 # endif 95 # endif
96 96
97 #elif defined (DOS_NT) 97 #elif defined (WIN32_NATIVE)
98 98
99 /***** (3) The MSDOS/NT way *****/ 99 /***** (3) The WIN32_NATIVE way *****/
100 100
101 /* Nothing doing */ 101 /* Nothing doing */
102 102
103 #else 103 #else
104 104
122 USG5_4 was defined, but this is already included in s/usg5-4.h */ 122 USG5_4 was defined, but this is already included in s/usg5-4.h */
123 123
124 /* Generally useful to include this file: */ 124 /* Generally useful to include this file: */
125 125
126 /* But Sun OS has broken include files and doesn't want it included */ 126 /* But Sun OS has broken include files and doesn't want it included */
127 #if !defined (DOS_NT) && !defined (WIN32) && !defined (SUNOS4) 127 #if !defined (WIN32_NATIVE) && !defined (SUNOS4)
128 # include <sys/ioctl.h> 128 # include <sys/ioctl.h>
129 #endif 129 #endif
130 /* UNIPLUS systems may have FIONREAD. */ 130 /* UNIPLUS systems may have FIONREAD. */
131 #ifdef UNIPLUS 131 #ifdef UNIPLUS
132 #include <sys.ioctl.h> 132 #include <sys.ioctl.h>
331 # define EMACS_SEPARATE_PROCESS_GROUP() setpgrp () 331 # define EMACS_SEPARATE_PROCESS_GROUP() setpgrp ()
332 /* old (pre-SVR4) USG's don't provide any way to do this. 332 /* old (pre-SVR4) USG's don't provide any way to do this.
333 No big loss -- it just means that ^Z won't work right 333 No big loss -- it just means that ^Z won't work right
334 if we're run from sh. */ 334 if we're run from sh. */
335 # define EMACS_SET_PROCESS_GROUP(pg) 335 # define EMACS_SET_PROCESS_GROUP(pg)
336 #elif defined(__MINGW32__) 336 #elif defined(MINGW)
337 # define EMACS_SEPARATE_PROCESS_GROUP() 337 # define EMACS_SEPARATE_PROCESS_GROUP()
338 #else 338 #else
339 /* Under NeXTstep, a process group of 0 is not the same as specifying 339 /* Under NeXTstep, a process group of 0 is not the same as specifying
340 your own process ID, so we go ahead and specify it explicitly. */ 340 your own process ID, so we go ahead and specify it explicitly. */
341 # define EMACS_SEPARATE_PROCESS_GROUP() setpgrp (0, getpid ()) 341 # define EMACS_SEPARATE_PROCESS_GROUP() setpgrp (0, getpid ())
382 struct termios main; 382 struct termios main;
383 #else /* !HAVE_TCATTR */ 383 #else /* !HAVE_TCATTR */
384 #ifdef HAVE_TERMIO 384 #ifdef HAVE_TERMIO
385 struct termio main; 385 struct termio main;
386 #else /* !HAVE_TERMIO */ 386 #else /* !HAVE_TERMIO */
387 #ifdef DOS_NT 387 #ifdef WIN32_NATIVE
388 int main; 388 int main;
389 #else /* not DOS_NT */ 389 #else /* not WIN32_NATIVE */
390 struct sgttyb main; 390 struct sgttyb main;
391 #endif /* not DOS_NT */ 391 #endif /* not WIN32_NATIVE */
392 #endif /* !HAVE_TERMIO */ 392 #endif /* !HAVE_TERMIO */
393 #endif /* !HAVE_TCATTR */ 393 #endif /* !HAVE_TCATTR */
394 394
395 /* If we have TERMIOS, we don't need to do this - they're taken care of 395 /* If we have TERMIOS, we don't need to do this - they're taken care of
396 by the tc*attr calls. */ 396 by the tc*attr calls. */
426 #ifdef HAVE_TERMIO 426 #ifdef HAVE_TERMIO
427 427
428 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) 428 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3)
429 429
430 #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ 430 #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */
431 #ifdef DOS_NT 431 #ifdef WIN32_NATIVE
432 #define EMACS_TTY_TABS_OK(p) 0 432 #define EMACS_TTY_TABS_OK(p) 0
433 #else /* not DOS_NT */ 433 #else /* not WIN32_NATIVE */
434 #define EMACS_TTY_TABS_OK(p) (((p)->main.sg_flags & XTABS) != XTABS) 434 #define EMACS_TTY_TABS_OK(p) (((p)->main.sg_flags & XTABS) != XTABS)
435 #endif /* not DOS_NT */ 435 #endif /* not WIN32_NATIVE */
436 436
437 #endif /* not def HAVE_TERMIO */ 437 #endif /* not def HAVE_TERMIO */
438 #endif /* not def HAVE_TERMIOS */ 438 #endif /* not def HAVE_TERMIOS */
439 439
440 #endif /* INCLUDED_systty_h_ */ 440 #endif /* INCLUDED_systty_h_ */