[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
        AssignAdd -- Adds a lock to an assign for multi-directory assigns (V36)

   SYNOPSIS
        success = AssignAdd(name,lock)
        D0                   D1   D2

        bool assignadd(strptr,bptr)

   FUNCTION
        Adds a lock to an assign, making or adding to a multi-directory
        assign.  Note that this only will succeed on an assign created with
        assignlock(), or an assign created with assignlate() which has been
        resolved (converted into a AssignLock()-assign).

        NOTE: you should not use the lock in any way after making this call
        successfully.  It becomes the part of the assign, and will be unlocked
        by the system when the assign is removed.  If you need to keep the
        lock, pass a lock from duplock() to assignlock().

   INPUTS
        name - Name of device to assign lock to (without trailing ':')
        lock - lock associated with the assigned name

   RESULT
        success - Success/failure indicator.  On failure, the lock is not
                  unlocked.

   SEE ALSO
        lock(), assignlock(), assignpath(), assignlate(), duplock(),
        remassignlist()