zAddTrustee

Adds the list of trustees to those already assigned to the file.

Service:File System Services (64-Bit)
Version:OES 2

Syntax

#include <zPublics.h>

STATUS zAddTrustee(
   Key_t          key,
   Xid_t          xid,
   const GUID_t  *trustee,
   NINT           rights);

Parameters

key

(IN) Specifies the file object where the trustee will be added, as returned by zOpen or zCreate.

xid

(IN) Specifies the transaction ID and binds the request to this transaction. If the requested action is not part of a transaction, use zNILXID.

trustee

(IN) Points to the trustee to add to the file object. The trustee is the eDirectory™ Globally Unique ID.

rights

(IN) Specifies the rights the specified trustee will have.

Return Values

zOK

The operation completed successfully.

non-0

An error occurred (see Section 4.1, Return Values for a description).

Remarks

Only the trustees that are not already assigned to the file are actually added.

See Also

zClose, zCreate, zDeleteTrustee, zGetInheritedRightsMask, zOpen, zGetTrustee, zSetInheritedRightsMask