refactor
This commit is contained in:
@@ -24,8 +24,8 @@ inline fn failed(r: usize) bool {
|
||||
}
|
||||
|
||||
/// Create a new endpoint owned by this process; returns its handle.
|
||||
pub fn createEndpoint() ?Handle {
|
||||
const r = sc.systemCall0(.create_endpoint);
|
||||
pub fn createIpcEndpoint() ?Handle {
|
||||
const r = sc.systemCall0(.create_ipc_endpoint);
|
||||
return if (failed(r)) null else r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user