delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/07/16:06:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: gcc using termios.h and -mno-cygwin
Date: Mon, 07 Jul 2003 13:04:22 -0700
Lines: 21
Message-ID: <becjnm$baf$1@main.gmane.org>
References: <3F034C90 DOT 9EF9D77C AT staktek DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
In-Reply-To: <3F034C90.9EF9D77C@staktek.com>

Terry Dabbs wrote:

> (1) Should this work with termios.h and -mno-cygwin together?

Not unless Windows natively supports the termios interface (which it 
doesn't).

When you use -mno-cygwin, what you're getting is pretty much the naked 
Windows API. The headers and .libs are provided by MinGW, of course 
(since MSFT doesn't ship header files with the system), but MinGW 
doesn't add any additional APIs over and above what Windows provides in 
its own DLLs (that's what Cygwin is there for!).

So no, you can't expect POSIX calls to work with -mno-cygwin. Stick to 
ANSI C and Win32 API calls.  If you don't know the difference between 
ANSI C and "Unix" (i.e. if you think that every API call on Linux/Unix 
is "part of C"), go read about it first.

--
Shankar.



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019