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: Wed, 16 Oct 2002 19:55:12 -0400 From: Christopher Faylor 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/