mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
LP_CLONE_FDIO_ROOT is now LP_CLONE_FDIO_NAMESPACE
This commit is contained in:
@@ -83,7 +83,7 @@ impl Drop for LaunchpadDestructor {
|
||||
// Load the executable
|
||||
zx_cvt(launchpad_elf_load(launchpad, launchpad_vmo_from_file(self.get_argv()[0])))?;
|
||||
zx_cvt(launchpad_load_vdso(launchpad, ZX_HANDLE_INVALID))?;
|
||||
zx_cvt(launchpad_clone(launchpad, LP_CLONE_FDIO_ROOT | LP_CLONE_FDIO_CWD))?;
|
||||
zx_cvt(launchpad_clone(launchpad, LP_CLONE_FDIO_NAMESPACE | LP_CLONE_FDIO_CWD))?;
|
||||
|
||||
// Clone stdin, stdout, and stderr
|
||||
if let Some(fd) = stdio.stdin.fd() {
|
||||
|
||||
@@ -180,7 +180,7 @@ pub fn launchpad_set_args(lp: *mut launchpad_t, argc: c_int,
|
||||
|
||||
// Launchpad clone constants
|
||||
|
||||
pub const LP_CLONE_FDIO_ROOT: u32 = 0x0001;
|
||||
pub const LP_CLONE_FDIO_NAMESPACE: u32 = 0x0001;
|
||||
pub const LP_CLONE_FDIO_CWD: u32 = 0x0002;
|
||||
// LP_CLONE_FDIO_STDIO = 0x0004
|
||||
// LP_CLONE_FDIO_ALL = 0x00FF
|
||||
|
||||
Reference in New Issue
Block a user