Close a number of handles.
#include <zircon/syscalls.h> zx_status_t zx_handle_close_many(const zx_handle_t* handles, size_t num_handles);
zx_handle_close_many() closes a number of handles, causing each
underlying object to be reclaimed by the kernel if no other handles to
This operation closes all handles presented to it, even if one or more of the handles is duplicate or invalid.
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_many() returns ZX_OK on success.
ZX_ERR_BAD_HANDLE One of the handles isn't a valid handle, or the same handle is present multiple times.
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.
Last updated 2019-11-21.