Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ MrmOpenHierarchy(3X) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought



MrmOpenHierarchy(3X)          SDK X11 R4.11MU05         MrmOpenHierarchy(3X)


NAME
       MrmOpenHierarchy--Allocates a hierarchy ID and opens all the UID
       files in the hierarchy

SYNOPSIS
       #include <Mrm/MrmPublic.h>

       Cardinal MrmOpenHierarchy(numfiles, filenameslist, ancillarystructureslist, hierarchyid)
            MrmCount            numfiles;
            String              filenameslist[];
            MrmOsOpenParamPtr   *ancillarystructureslist;
            MrmHierarchy        *hierarchyid;


DESCRIPTION
       This routine is obsolete and exists for compatibility with previous
       releases.  It is replaced by MrmOpenHierarchyPerDisplay.
       MrmOpenHierarchy is identical to MrmOpenHierarchyPerDisplay except
       that MrmOpenHierarchy does not take a display argument.


       numfiles        Specifies the number of files in the name list.

       filenameslist  Specifies an array of character strings that
                        identify the UID files.

       ancillarystructureslist
                        A list of operating-system-dependent ancillary
                        structures corresponding to such things as
                        filenames, clobber flag, and so forth.  This
                        argument should be NULL for most operations.  If you
                        need to reference this structure, see the definition
                        of MrmOsOpenParamPtr in MrmPublic.h for more
                        information.

       hierarchyid     Returns the search hierarchy ID.  The search
                        hierarchy ID identifies the list of UID files that
                        MRM searches (in order) when performing subsequent
                        fetch calls.


       Each UID file string in filenameslist can specify either a full
       pathname or a filename.  If a UID file string has a leading slash
       (/), it specifies a full pathname, and MRM opens the file as
       specified.  Otherwise, the UID file string specifies a filename.  In
       this case MRM looks for the file along a search path specified by the
       UIDPATH environment variable or by a default search path, which
       varies depending on whether or not the XAPPLRESDIR environment
       variable is set.

       The UIDPATH environment variable specifies a search path and naming
       conventions associated with UID files.  It can contain the
       substitution field %U, where the UID file string from the
       filenameslist argument to MrmOpenHierarchyPerDisplay is substituted
       for %U.  It can also contain the substitution fields accepted by
       XtResolvePathname.  The substitution field %T is always mapped to
       uid.  The entire path is first searched with %S mapped to .uid and
       then, if no file is found, is searched again with %S mapped to NULL.

       If no display is set prior to calling this function, the result of
       this function's call to XtResolvePathname is undefined.

       For example, the following UIDPATH value and MrmOpenHierarchy call
       cause MRM to open two separate UID files:

       UIDPATH=/uidlib/%L/%U.uid:/uidlib/%U/%L
         static char *uidfiles[] = {"/usr/users/me/test.uid", "test2"};
         MrmHierarchy  *Hierarchyid;
         MrmOpenHierarchy((MrmCount)2,uidfiles, NULL, Hierarchyid)


       MRM opens the first file, /usr/users/me/test.uid, as specified in the
       filenameslist argument to MrmOpenHierarchy, because the UID file
       string in the filenameslist argument specifies a full pathname.
       MRM looks for the second file, test2, first as /uidlib/%L/test2.uid
       and second as /uidlib/test2/%L, where the display's language string
       is substituted for %L.

       After MrmOpenHierarchy opens the UID hierarchy, you should not delete
       or modify the UID files until you close the UID hierarchy by calling
       MrmCloseHierarchy.

       If UIDPATH is not set but the environment variable XAPPLRESDIR is
       set, MRM searches the following pathnames:

                 22:59:55S
                 $XAPPLRESDIR/%L/uid/%N/22:59:55S
                 $XAPPLRESDIR/%l/uid/%N/22:59:55S
                 $XAPPLRESDIR/uid/%N/22:59:55S
                 $XAPPLRESDIR/%L/uid/22:59:55S
                 $XAPPLRESDIR/%l/uid/22:59:55S
                 $XAPPLRESDIR/uid/22:59:55S
                 $HOME/uid/22:59:55S
                 $HOME/22:59:55S
                 /usr/lib/X11/%L/uid/%N/22:59:55S
                 /usr/lib/X11/%l/uid/%N/22:59:55S
                 /usr/lib/X11/uid/%N/22:59:55S
                 /usr/lib/X11/%L/uid/22:59:55S
                 /usr/lib/X11/%l/uid/22:59:55S
                 /usr/lib/X11/uid/22:59:55S
                 /usr/include/X11/uid/22:59:55S


       If neither UIDPATH nor XAPPLRESDIR is set, MRM searches the following
       pathnames:

                 22:59:55S
                 $HOME/%L/uid/%N/22:59:55S
                 $HOME/%l/uid/%N/22:59:55S
                 $HOME/uid/%N/22:59:55S
                 $HOME/%L/uid/22:59:55S
                 $HOME/%l/uid/22:59:55S
                 $HOME/uid/22:59:55S
                 $HOME/22:59:55S
                 /usr/lib/X11/%L/uid/%N/22:59:55S
                 /usr/lib/X11/%l/uid/%N/22:59:55S
                 /usr/lib/X11/uid/%N/22:59:55S
                 /usr/lib/X11/%L/uid/22:59:55S
                 /usr/lib/X11/%l/uid/22:59:55S
                 /usr/lib/X11/uid/22:59:55S
                 /usr/include/X11/uid/22:59:55S


       These paths are defaults that vendors may change.  For example, a
       vendor may use different directories for /usr/lib/X11 and
       /usr/include/X11.

       The following substitutions are used in these paths:


       %U   The UID file string, from the filenameslist argument.

       %N   The class name of the application.

       %L   The display's language string.

       %l   The language component of the display's language string.

       %S   The suffix to the file name.  The entire path is searched first
            with a suffix of .uil, and if no file is found, it is searched
            again with a NULL suffix.


RETURN VALUE
       This function returns one of these status return constants:


       MrmSUCCESS          The function executed successfully.

       MrmNOTFOUND        File not found.

       MrmFAILURE          The function failed.


RELATED INFORMATION
       MrmOpenHierarchyPerDisplay(3X) and MrmCloseHierarchy(3X).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026