Closes a key.
#include <zPublics.h> STATUS zClose( Key_t key);
(IN) Specifies the object to close by the key that was returned by zOpen, zRootKey, or zCreate.
zOK |
The operation completed successfully. |
non-0 |
An error occurred (see Section 4.1, Return Values for a description). |
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.