Skip to content

HandleDup

HandleDuplicate() that stores the new handle in out.

Library helper

Implemented in zuzu.h on top of the syscalls; it has no syscall number of its own.

Err HandleDup(Handle h, HandlePerms perms, Marker marker, Handle *out);

Parameters

Name Direction Description
h in Handle to duplicate.
perms in Permissions for the copy.
marker in Marker for the copy (own ports only).
out out Receives the new handle on success; may be NULL.

Returns

As HandleDuplicate().