blob: b29842b58a54c8f4e2ccecb69deece681a7b8634 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(fxb/39732): This should be read as "library zx".
library zz;
[Transport = "Syscall"]
protocol handle {
/// Close a handle.
/// Rights: None.
handle_close([Release] handle handle) -> (status status);
/// Close a number of handles.
/// Rights: None.
handle_close_many([Release] vector<handle> handles) -> (status status);
/// Duplicate a handle.
/// Rights: handle must have ZX_RIGHT_DUPLICATE.
handle_duplicate(handle handle, rights rights) -> (status status, handle out);
/// Replace a handle.
/// Rights: None.
handle_replace([Release] handle handle, rights rights) -> (status status, handle out);