🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2235

Re: rh enhancements description

#2235
From: Dave Decot
Date: Fri, 12 May 1989 19:31
24 lines
1495 bytes
>   -HP has files called "Context Dependent Files" (or CDFs) that are
>    really hidden directories whose contents are selected based on the
>    "context" of the system trying to access the file. (e.g. the kernal
> 	is referenced as "/hp-ux" but there is actually a hidden directory
> 	called "/hp-ux+" that contains kernals for the different nodes in the
> 	network that boot from that file system). At any rate, readdir
> 	resolves these, but I want to find a way to see the hidden
> 	directories.

When processing the file blah, also try stat(2) on the file "blah+".

If ((buf.st_mode & (S_IFMT | S_CDF)) == (S_IFDIR | S_CDF)), the file
"blah" is a hidden directory.  If you wish to descend it, use opendir() on
"blah+"; succesive calls to readdir() will return the contents of
the hidden directory.

In fact, any reference to "foo+", where foo is the name of a context
dependent file, is refers to the associated hidden directory.

Disclaimer: this information is only my opinion, not necessarily HP's.

Dave Decot
Hewlett-Packard Company
decot%hpda@hplabs.hp.com
Technical Details
Message-ID: <11490004@hpisod2.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot
References: <1260001@grlab.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot
From: decot@hpisod2.HP.COM (Dave Decot)
Newsgroups: comp.sources.bugs
Subject: Re: rh enhancements description
Message-ID: <11490004@hpisod2.HP.COM>
Date: 12 May 89 19:31:43 GMT
References: <1260001@grlab.UUCP>
Organization: Hewlett Packard, Cupertino
Lines: 24