Browse Prior Art Database

Recursive Lister for the Distributed Computing Environment Cell Directory Services Namespace

IP.com Disclosure Number: IPCOM000112684D
Original Publication Date: 1994-Jun-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 66K

Publishing Venue

IBM

Related People

Cantor, GM: AUTHOR

Abstract

Cell Directory Services (CDSs) is the location-independent lookup facility of the Open Software Foundation's Distributed Computing Environment* (DCE). The CDS name-space can be likened to a UNIX* filesystem in that its hierarchial structure can contain directories, objects and softlinks. The standard control program to CDS, as delivered by the OSF, is cdscp. This control program allows a user to list the contents of the CDS namespace at a single directory level. A Motif*-based program, cdsbrowser, which is also shipped, can give a graphical tree representation of the namespace. However, this program needs to run under Motif. The stock OSF DCE does not contain an ASCII-based tool that allows the user to recursively display the contents of the CDS namespace. cdsli is such a tool.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Recursive Lister for the Distributed Computing Environment Cell Directory
Services Namespace

      Cell Directory Services (CDSs) is the location-independent
lookup facility of the Open Software Foundation's Distributed
Computing Environment* (DCE).  The CDS name-space can be likened to a
UNIX* filesystem in that its hierarchial structure can contain
directories, objects and softlinks.  The standard control program to
CDS, as delivered by the OSF, is cdscp.  This control program allows
a user to list the contents of the CDS namespace at a single
directory level.  A Motif*-based program, cdsbrowser, which is also
shipped, can give a graphical tree representation of the namespace.
However, this program needs to run under Motif.  The stock OSF DCE
does not contain an ASCII-based tool that allows the user to
recursively display the contents of the CDS namespace.  cdsli is such
a tool.

      Design - cdsli is a command line tool that allows a user to
quickly enumerate the contents of a CDS namespace.  cdsli uses the
Cell Directory Portable Interface directly.  cdsli behaves like a
UNIX-style utility in that it accepts flags.  These flags are
processed by the standard C routine getopt().  For each flag that is
processed, a bit is turned on in an entity mode or action mode
(depending on the flag).  After all flags are processed, the entity
mode and action mode are combined (using the | operator in C) into a
final mode.  The entry to be listed is processed next.  This entry is
processed with the standard C routine strtok().  After processing is
complete, a switch statement is entered and the proper functions are
called based on the final mode.  The "workhorse" function of cdsli is
get_dirs().  Function get_dirs() is non-recursive unless the user
wishes to list entries in a recursive fashion, in which case it will
operate in a recursive manner.  Whe...