pcntl_setns()
function pcntl_setns(int $process_id = null, int $nstype = 1073741824): bool
Joins one Linux namespace of the selected process.
Parameters:
$process_id(int), defaultnull, optional$nstype(int), default1073741824, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/pcntl/pcntl_setns.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how pcntl_setns is implemented in the compiler, see the internals page.