delorie.com/archives/browse.cgi | search |
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 |
Date: | Wed, 16 Oct 2002 19:55:12 -0400 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: starting a cygwin app from a Windows Service |
Message-ID: | <20021016235512.GB25691@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <83040F98B407E6428FEC18AC720F5D73E50067 AT exchange DOT tropicnetworks DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <83040F98B407E6428FEC18AC720F5D73E50067@exchange.tropicnetworks.com> |
User-Agent: | Mutt/1.4i |
On Wed, Oct 16, 2002 at 07:49:19PM -0400, Rolf Campbell wrote: >> -----Original Message----- >> From: Christopher Faylor [mailto:cgf AT redhat DOT com] >> >> I don't know. I think it would be far simpler to have something like: >> >> #ifdef __CYGWIN__ >> # define READTEXT "rt" >> #else >> # define READTEXT "r" >> #endif >> >> . >> . >> . >> >> FILE fp = fopen ("foo", READTEXT); >> > >Doesn't any libc worth it's wieght ignore the "t"? I think only a "b" is supposed to be ignored, but probably any modern C library would ignore it, yes. Personally, I'd rather be safe, though. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |