emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIOCGLTC and TIOCGETC on MSDOS and w32


From: Eli Zaretskii
Subject: Re: TIOCGLTC and TIOCGETC on MSDOS and w32
Date: Tue, 10 Aug 2010 20:21:27 +0300

> From: Dan Nicolaescu <address@hidden>
> Date: Mon, 09 Aug 2010 15:57:25 -0400
> 
> Are TIOCGLTC and TIOCGETC defined on MSDOS and w32?
> [very likely, but it would be nice if someone with access to these platforms 
> could check]

TIOCGETC and TIOCGLTC are used in a call to ioctl, so any non-Posix
system is highly unlikely to have them, because Posix-style ioctl is
normally absent there.

I ran the preprocessor of sysdep.c and made sure that the resulting
file does not use any of these 2 on both w32 and MS-DOS.

> If they are not, we can completely remove the following code in systty.h:
> 
> #if defined (TIOCGLTC) && !defined (HAVE_TERMIOS)
> #define HAVE_LTCHARS
> #endif
> 
> #if defined (TIOCGETC) && !defined (HAVE_TERMIOS)
> #define HAVE_TCHARS
> #endif
> 
> which would enable remove of more code in other places...

Yes, you can do that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]