Reads all the trustees assigned to a file.
#include <zPublics.h> STATUS zGetTrustee( Key_t key, NINT startingIndex, GUID_t *retTrustee, NINT *retRights, NINT *retNextIndex);
(IN) Specifies the file object (as returned by zOpen or zCreate) whose trustees will be retrieved.
(IN) Specifies the starting index for reading the next set of trustees. Zero specifies to begin reading the trustees. Thereafter, it should be replaced by the index returned by retNextIndex.
(IN/OUT) Points to the buffer to return the trustee assigned to this file that corresponds to startIndex.
(OUT) Points to the rights associated with the returned trustee.
(OUT) Points to the next index to be used in startingIndex. If this is set to negative one, all the trustees have been read.
zOK |
The operation completed successfully. |
non-0 |
An error occurred (see Section 4.1, Return Values for a description). |
zGetTrustee returns only the trustees assigned to a file that you are allowed to see. The index does not imply any order to the trustees. Instead, it is a simple way to keep track of where to begin again in the list of trustees. Only one trustee is returned at a time.