delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/23/17:27:11

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: <0c3601c14476$9a4bc090$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Ronald Landheer" <info AT rlsystems DOT net>, <cygwin AT cygwin DOT com>
References: <0c2601c14475$5d9d3210$0200a8c0 AT lifelesswks> <0c3001c14475$b49ff9d0$0200a8c0 AT lifelesswks>
Subject: Re: [PATCH] ls & "magic" cygdrive dir (was: RE: cygdrive stuff)
Date: Mon, 24 Sep 2001 07:27:51 +1000
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: 23 Sep 2001 21:35:49.0723 (UTC) FILETIME=[B687BAB0:01C14477]

----- Original Message -----
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>


>
> > ----- Original Message -----
> > From: "Ronald Landheer" <info AT rlsystems DOT net>
> > To: <cygwin AT cygwin DOT com>
> > Sent: Monday, September 24, 2001 7:04 AM
> > Subject: [PATCH] ls & "magic" cygdrive dir (was: RE: cygdrive stuff)
> >
> >
> > Hello all,
> >
> > After the overwhelming display of interest for my last mail on this
> > subject (which had gone completely unnoticed as far as I can tell),
I
>
> I missed it - cannot even recall it :].
>
> > have patched up the patch I sent earlier to take care of a lacking
> > feature.
> > Much of my original mail is still valid, so I'm re-posting:
> >
> > -- BEGIN RE-POST --
> > > On Wed, Sep 19, 2001 at 04:11:52PM -0300, salvador wrote:
> > >> 1) "ls -la /" doesn't show any cygdrive directory. Note it could
> > >> be solved in the same way UNIX solves the /proc stuff, just
> mounting
> > >> over an existent directory a fake one.
> > >> 2) "ls -la /cygdrive" doesn't work.
> > > Correct.
> > > If you'd like to correct this, patches will be, as always,
> > > gratefully accepted.
> > I saw this, it itched me, so I'm attaching a patch :)
> >
> > The patch I'm attaching is against the source 'ls.c' as found in
> > fileutils-4.1-1. It introduces three methods, of which one is
called:
> > ls-cygwin-loop(). It is called whenever needed.
>
> ...
>
> > Note it only shows you that cygdrive exists. As there is no "magic
> dir"
> > filetype, and it's not a real directory, I'm not showing it as one.
My
> > patch only does anything when there *is* no real directory - if it
> comes
> > through a stat() call, it is not handled.
>
> You've hit it on the button. stat() is what you need to patch, not ls.
>
> I stopped reading here... but if you patch stat() I promise to read
> further.
>

Sorry, a little more detail is needed, it's stat() + opendir() +
readdir() IIRC that need altering.

Rob


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

- Raw text -


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