delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/18/00:23:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <00b301c0996a$fcb35c50$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin AT cygwin DOT com>
References: <00f101c0988b$eab461a0$3c5350d8 AT bluesguitar DOT org> <20010217093601 DOT D16740 AT cygbert DOT vinschen DOT de> <20010217201710 DOT C32369 AT redhat DOT com> <017501c0994d$43867270$3c5350d8 AT bluesguitar DOT org> <20010217205531 DOT A1171 AT redhat DOT com> <019701c09968$12525cd0$3c5350d8 AT bluesguitar DOT org> <20010218001628 DOT A9863 AT redhat DOT com>
Subject: automode experience feedback
Date: Sun, 18 Feb 2001 16:23:53 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 18 Feb 2001 05:16:39.0318 (UTC) FILETIME=[F8EB9B60:01C09969]

----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Sunday, February 18, 2001 4:16 PM
Subject: Re: A question for Corinna


<snip>
> automode.o, binmode.o, and textmode.o all affect low-level I/O, the
> same way that mounting directories or files affect low-level I/O.
> There is no "C" or "C++" component.
>
> Can I suggest that you could just be writing simple test cases to
> figure this kind of thing out?  The best teacher is experience.
>

when I did the file mode work on squid, I looked at using automode and decided against it because:
* squid uses binary files for the object store index, and the cached objects themselves. (So I had to make some of the opens
explictly binary no matter what.)
* reading DOS formatted files and then writing unix style seemed bound to confuse someone, eventually.

The squid developers happily accepted the changes, with the contants checked for in one of the main header files. (Every file open
in squid now explicitly indicates it's mode as text or binary regardless of platform. On platforms that don't define O_TEXT &&
O_BINARY these are #ifdef'd to 0).

Rob


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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