@@ -24,26 +24,26 @@ pub trait CommandExt: Sealed {
2424 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2525 fn uid (
2626 & 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 ,
2929 ) -> & mut process:: Command ;
3030
3131 /// Similar to `uid`, but sets the group ID of the child process. This has
3232 /// the same semantics as the `uid` field.
3333 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
3434 fn gid (
3535 & 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 ,
3838 ) -> & mut process:: Command ;
3939
4040 /// Sets the supplementary group IDs for the calling process. Translates to
4141 /// a `setgroups` call in the child process.
4242 #[ unstable( feature = "setgroups" , issue = "90747" ) ]
4343 fn groups (
4444 & 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 ] ,
4747 ) -> & mut process:: Command ;
4848
4949 /// Schedules a closure to be run just before the `exec` function is
@@ -160,26 +160,26 @@ pub trait CommandExt: Sealed {
160160impl CommandExt for process:: Command {
161161 fn uid (
162162 & 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 ,
165165 ) -> & mut process:: Command {
166166 self . as_inner_mut ( ) . uid ( id) ;
167167 self
168168 }
169169
170170 fn gid (
171171 & 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 ,
174174 ) -> & mut process:: Command {
175175 self . as_inner_mut ( ) . gid ( id) ;
176176 self
177177 }
178178
179179 fn groups (
180180 & 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 ] ,
183183 ) -> & mut process:: Command {
184184 self . as_inner_mut ( ) . groups ( groups) ;
185185 self
0 commit comments