rh enhancements description

Dave Decot decot at hpisod2.HP.COM
Sat May 13 05:31:43 AEST 1989


>   -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 at hplabs.hp.com



More information about the Comp.sources.bugs mailing list