@@ -24,26 +24,26 @@ pub trait CommandExt: Sealed {
24
24
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
25
25
fn uid (
26
26
& mut self ,
27
- #[ cfg( not( target_os = "vxworks" ) ) ] id : u32 ,
28
- #[ cfg( target_os = "vxworks" ) ] id : u16 ,
27
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] id : u32 ,
28
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] id : u16 ,
29
29
) -> & mut process:: Command ;
30
30
31
31
/// Similar to `uid`, but sets the group ID of the child process. This has
32
32
/// the same semantics as the `uid` field.
33
33
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
34
34
fn gid (
35
35
& mut self ,
36
- #[ cfg( not( target_os = "vxworks" ) ) ] id : u32 ,
37
- #[ cfg( target_os = "vxworks" ) ] id : u16 ,
36
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] id : u32 ,
37
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] id : u16 ,
38
38
) -> & mut process:: Command ;
39
39
40
40
/// Sets the supplementary group IDs for the calling process. Translates to
41
41
/// a `setgroups` call in the child process.
42
42
#[ unstable( feature = "setgroups" , issue = "90747" ) ]
43
43
fn groups (
44
44
& mut self ,
45
- #[ cfg( not( target_os = "vxworks" ) ) ] groups : & [ u32 ] ,
46
- #[ cfg( target_os = "vxworks" ) ] groups : & [ u16 ] ,
45
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] groups : & [ u32 ] ,
46
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] groups : & [ u16 ] ,
47
47
) -> & mut process:: Command ;
48
48
49
49
/// Schedules a closure to be run just before the `exec` function is
@@ -160,26 +160,26 @@ pub trait CommandExt: Sealed {
160
160
impl CommandExt for process:: Command {
161
161
fn uid (
162
162
& mut self ,
163
- #[ cfg( not( target_os = "vxworks" ) ) ] id : u32 ,
164
- #[ cfg( target_os = "vxworks" ) ] id : u16 ,
163
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] id : u32 ,
164
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] id : u16 ,
165
165
) -> & mut process:: Command {
166
166
self . as_inner_mut ( ) . uid ( id) ;
167
167
self
168
168
}
169
169
170
170
fn gid (
171
171
& mut self ,
172
- #[ cfg( not( target_os = "vxworks" ) ) ] id : u32 ,
173
- #[ cfg( target_os = "vxworks" ) ] id : u16 ,
172
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] id : u32 ,
173
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] id : u16 ,
174
174
) -> & mut process:: Command {
175
175
self . as_inner_mut ( ) . gid ( id) ;
176
176
self
177
177
}
178
178
179
179
fn groups (
180
180
& mut self ,
181
- #[ cfg( not( target_os = "vxworks" ) ) ] groups : & [ u32 ] ,
182
- #[ cfg( target_os = "vxworks" ) ] groups : & [ u16 ] ,
181
+ #[ cfg( not( any ( target_os = "vxworks" , target_os = "espidf" ) ) ) ] groups : & [ u32 ] ,
182
+ #[ cfg( any ( target_os = "vxworks" , target_os = "espidf" ) ) ] groups : & [ u16 ] ,
183
183
) -> & mut process:: Command {
184
184
self . as_inner_mut ( ) . groups ( groups) ;
185
185
self
0 commit comments