Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 21 Jan 2005 13:11:58 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: bug in cygwin ? Message-ID: <20050121121158.GP3113@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <41F086E7 DOT 6010007 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F086E7.6010007@byu.net> User-Agent: Mutt/1.4.2i On Jan 20 21:36, Eric Blake wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > When compiling coreutils/src/stty.c, I got a warning from this segment: > > /* ISC renamed swtch to susp for termios, but we'll accept either name. */ > #if defined(VSUSP) && !defined(VSWTCH) > # define VSWTCH VSUSP > # define CSWTCH CSUSP > #endif > #if defined(VSWTCH) && !defined(CSWTCH) > # define CSWTCH _POSIX_VDISABLE > #endif > > stty.c:106:1: warning: "CSWTCH" redefined > In file included from /usr/include/termios.h:4, > from stty.c:40: > /usr/include/sys/termios.h:85:1: warning: this is the location of the > previous definition > > Investigation of sys/termios.h shows that cygwin has "#define CSWTCH 0x1a" > (ctrl-z), "#define CSUSP CTRL('z')" (where CTRL is ((ch)&0x1f), "#define > VSUSP 14", "#define VSWTC 15", but no VSWTCH anywhere! Is VSWTC a typo > for the intended VSWTCH? And why are VSUSP and VSWTC distinct, when > CSWTCH and CSUSP are the same and coreutils was trying to use VSUSP as an > alias to VSWTCH? Looks like a bug in coreutils to me. The above mentioned defines are not equal, but equivalent defined on Linux. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/