This is the mail archive of the
mailing list for the Cygwin project.
RE: Skipping the /proc filesystem
- From: "Chris January" <chris at atomice dot net>
- To: "Cygwin at Cygwin dot Com" <cygwin at cygwin dot com>
- Date: Thu, 24 Jul 2003 12:23:54 +0100
- Subject: RE: Skipping the /proc filesystem
> From: firstname.lastname@example.org [mailto:email@example.com]On Behalf
> Of Randall R Schulz
> At 13:59 2003-07-23, Chris January wrote:
> > > Randall R Schulz wrote:
> > > > At 18:15 2003-07-22, David A. Cobb wrote:
> > > >>I would wish to tell find not to get involved with the
> /proc filesystem
> > > >>at all. Can that easily be done?
> > > >
> > > > Very easily:
> > > > % find / -path '/proc' -prune -o -print
> > >
> > > Would it make sense to identify the inodes under /proc/registry as not
> > > regular files (type f), but, say, devices (or other such
> special files)?
> Just to clarify what may, due to quote trimming, appear to be a
> suggestion I made, the idea about using a special inode type for the
> /proc entries was not mine, it was David A. Cobb's.
Actually it was Shankar Unni's, but let's not split hairs...
Shankar: It's not a good idea because i) there are no unix "special" file
types that could reasonably correspond to registry values, ii) under the
/proc filesystem in linux, all kinds of things show up as regular files,
iii) setting the files to be "special" is not a good way to get find to
ignore them. An extended mechanism for accessing /proc/registry is
warranted, however, particular for writing to the registry but this is a
Randall: I really must get a better e-mail client!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html