Debian Codegraph @

third_party/rust/mach/src/port.rs

raw
1 //! This module corresponds to `mach/port.h`
2
3 use vm_types::natural_t;
4
5 pub type mach_port_name_t = natural_t;
6
7 #[repr(C)]
8 #[derive(Copy, Clone, Debug, Default, Hash, PartialOrd, PartialEq, Eq, Ord)]
9 pub struct ipc_port;
10
11 pub type ipc_port_t = *mut ipc_port;
12
13 pub type mach_port_t = ::libc::c_uint;
14
15 pub const MACH_PORT_NULL: mach_port_t = 0;
16 pub const MACH_PORT_DEAD: mach_port_t = !0;
17
18 pub type mach_port_right_t = natural_t;
19
20 pub const MACH_PORT_RIGHT_SEND: mach_port_right_t = 0;
21 pub const MACH_PORT_RIGHT_RECEIVE: mach_port_right_t = 1;
22 pub const MACH_PORT_RIGHT_SEND_ONCE: mach_port_right_t = 2;
23 pub const MACH_PORT_RIGHT_PORT_SET: mach_port_right_t = 3;
24 pub const MACH_PORT_RIGHT_DEAD_NAME: mach_port_right_t = 4;
25 pub const MACH_PORT_RIGHT_LABELH: mach_port_right_t = 5;
26 pub const MACH_PORT_RIGHT_NUMBER: mach_port_right_t = 6;