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 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: gcc using termios.h and -mno-cygwin Date: Mon, 07 Jul 2003 13:04:22 -0700 Lines: 21 Message-ID: References: <3F034C90 DOT 9EF9D77C AT staktek DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/