We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417ffc9 commit 17a2a76Copy full SHA for 17a2a76
src/libstd/sys/unix/process/zircon.rs
@@ -17,11 +17,16 @@ use u64;
17
18
use libc::{c_int, c_void};
19
20
-pub type zx_handle_t = i32;
+pub type zx_handle_t = u32;
21
pub type zx_vaddr_t = usize;
22
pub type zx_rights_t = u32;
23
pub type zx_status_t = i32;
24
25
+// TODO(raggi): zx_size_t was removed from Zircon. various syscall API docs use size_t here, but
26
+// don't define that well at the ABI level yet, as the C spec definition of size_t isn't what is
27
+// meant. In the future Zirocn will define size_t more strictly for it's ABI. At that time,
28
+// zx_size_t should be removed here, and replaced with an appropriately sized type with a
29
+// sufficiently strict definition.
30
pub type zx_size_t = usize;
31
32
pub const ZX_HANDLE_INVALID: zx_handle_t = 0;
0 commit comments