delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/24/17:45:24

Message-Id: <200506242145.j5OLjMd1015337@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: stat file -- cygwin vs. Windows size?
Date: Fri, 24 Jun 2005 16:45:12 -0500
MIME-Version: 1.0
In-Reply-To: <Pine.LNX.4.62.0506241538260.31489@ns.pyerotechnics.com>
X-IsSubscribed: yes

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Jason Pyeron
> Sent: Friday, June 24, 2005 2:40 PM
> To: cygwin AT cygwin DOT com
> Subject: RE: stat file -- cygwin vs. Windows size?
> 
> 
> The binary size is accurate, text, by its nature may never be 
> correct on any operating system, since it is buffered, 
> parsed, etc by the OS in an OS dependent way.
> 

Actually I am not sure that's correct.  I am unaware of any *OS* that does
anything like that (maybe the DOS INT13 stuff did, but we're talking ancient
history there).  The ones I can think of are sane enough to treat files as
what they are, i.e. a string of bytes, at the system call level, and do no
inspection of any kind on the contents (none that you're supposed to have to
care about anyway).

The culprit in this confusion is not the OSes but the C runtimes, and the
fact that on different OSes, some text file formats are more common than
others.  The C runtime essentially assumes that all files are text files,
when of course this is not and has never been the case.  What really should
be done is the deprecation of all "texty" features of the FILE object (e.g.
stuff like fprintf()), and create a new "FILE_TEXT" object which inherits
from FILE and adds all the texty operations such as fprintf(), fscanf(),
etc, in addition to being able to handle any of the myriad text file formats
in existence.

But that would make too much sense, so I for one shall not hold my breath.

-- 
Gary R. Van Sickle


--
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/

- Raw text -


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