Close a handle.
#include <zircon/syscalls.h> zx_status_t zx_handle_close(zx_handle_t handle);
zx_handle_close() closes a handle, causing the underlying object to be
reclaimed by the kernel if no other handles to it exist.
It is not an error to close the special "never a valid handle" ZX_HANDLE_INVALID,
free(NULL) being a valid call.
zx_handle_close() returns ZX_OK on success.
ZX_ERR_BAD_HANDLE handle isn't a valid handle.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.