starting a cygwin app from a Windows Service

Christopher Faylor cgf@redhat.com
Wed Oct 16 17:28:00 GMT 2002


On Wed, Oct 16, 2002 at 07:49:19PM -0400, Rolf Campbell wrote:
>> -----Original Message-----
>> From: Christopher Faylor [mailto:cgf@redhat.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/



More information about the Cygwin mailing list