zClose

Closes a key.

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

Syntax

#include <zPublics.h>

STATUS zClose(
   Key_t   key);

Parameters

key

(IN) Specifies the object to close by the key that was returned by zOpen, zRootKey, or zCreate.

Return Values

zOK

The operation completed successfully.

non-0

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

Remarks

If any specific actions are needed when the file is closed (such as deleting, flushing, or purging), those attributes should have been specified in the open request.

zClose invalidates the key and releases the object represented by the key. If the key is for an open file, it closes the file. If it is the key set up by zRootKey, not only is this instance of the connection closed, but all of the NSS resources associated with the connection are freed and any pending transactions are aborted.

See Also

zCreate, zRootKey, zOpen