From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: TIOCGLTC and TIOCGETC on MSDOS and w32 Date: Tue, 10 Aug 2010 20:21:27 +0300 Message-ID: <83lj8ev0x4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1281460948 2730 80.91.229.12 (10 Aug 2010 17:22:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2010 17:22:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 10 19:22:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OisWv-0002ZO-VC for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 19:22:26 +0200 Original-Received: from localhost ([127.0.0.1]:39583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OisWv-0005h0-Ef for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 13:22:25 -0400 Original-Received: from [140.186.70.92] (port=39953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OisW4-0005PC-Gg for emacs-devel@gnu.org; Tue, 10 Aug 2010 13:21:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OisW3-0006PN-4O for emacs-devel@gnu.org; Tue, 10 Aug 2010 13:21:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:56526) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OisW1-0006Os-Gh; Tue, 10 Aug 2010 13:21:29 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L6Y00I005E4SE00@a-mtaout22.012.net.il>; Tue, 10 Aug 2010 20:21:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6Y009YT5JMGZ40@a-mtaout22.012.net.il>; Tue, 10 Aug 2010 20:21:23 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128552 Archived-At: > From: Dan Nicolaescu > 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.