diff options
| author | Meziu <meziu210@icloud.com> | 2021-10-19 17:59:59 +0200 |
|---|---|---|
| committer | Mark Drobnak <mark.drobnak@gmail.com> | 2022-06-13 20:44:39 -0700 |
| commit | 4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb (patch) | |
| tree | fe1be89ab4da7ec631c4c4d7bd6f824d95c29da4 /library/std/src/os/unix/process.rs | |
| parent | 3bdec3c8abdc48e46715d7b14b764af28da1cee3 (diff) | |
| download | rust-4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb.tar.gz rust-4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb.zip | |
Horizon OS STD support
Co-authored-by: Ian Chamberlain <ian.h.chamberlain@gmail.com> Co-authored-by: Mark Drobnak <mark.drobnak@gmail.com>
Diffstat (limited to 'library/std/src/os/unix/process.rs')
| -rw-r--r-- | library/std/src/os/unix/process.rs | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/library/std/src/os/unix/process.rs b/library/std/src/os/unix/process.rs index 9dca9b4a4a3..64fd6497463 100644 --- a/library/std/src/os/unix/process.rs +++ b/library/std/src/os/unix/process.rs @@ -24,8 +24,9 @@ pub trait CommandExt: Sealed { #[stable(feature = "rust1", since = "1.0.0")] fn uid( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] id: u32, - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] id: u16, + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] + id: u32, + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] id: u16, ) -> &mut process::Command; /// Similar to `uid`, but sets the group ID of the child process. This has @@ -33,8 +34,9 @@ pub trait CommandExt: Sealed { #[stable(feature = "rust1", since = "1.0.0")] fn gid( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] id: u32, - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] id: u16, + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] + id: u32, + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] id: u16, ) -> &mut process::Command; /// Sets the supplementary group IDs for the calling process. Translates to @@ -42,8 +44,9 @@ pub trait CommandExt: Sealed { #[unstable(feature = "setgroups", issue = "90747")] fn groups( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] groups: &[u32], - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] groups: &[u16], + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] groups: &[u32], + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] + groups: &[u16], ) -> &mut process::Command; /// Schedules a closure to be run just before the `exec` function is @@ -160,8 +163,9 @@ pub trait CommandExt: Sealed { impl CommandExt for process::Command { fn uid( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] id: u32, - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] id: u16, + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] + id: u32, + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] id: u16, ) -> &mut process::Command { self.as_inner_mut().uid(id); self @@ -169,8 +173,9 @@ impl CommandExt for process::Command { fn gid( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] id: u32, - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] id: u16, + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] + id: u32, + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] id: u16, ) -> &mut process::Command { self.as_inner_mut().gid(id); self @@ -178,8 +183,9 @@ impl CommandExt for process::Command { fn groups( &mut self, - #[cfg(not(any(target_os = "vxworks", target_os = "espidf")))] groups: &[u32], - #[cfg(any(target_os = "vxworks", target_os = "espidf"))] groups: &[u16], + #[cfg(not(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon")))] groups: &[u32], + #[cfg(any(target_os = "vxworks", target_os = "espidf", target_os = "horizon"))] + groups: &[u16], ) -> &mut process::Command { self.as_inner_mut().groups(groups); self |
