1- #[ cfg( not( target_os = "espidf" ) ) ]
1+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
22use crate :: process:: { Pid , Uid } ;
33use crate :: { backend, io} ;
44
@@ -26,7 +26,7 @@ pub fn nice(inc: i32) -> io::Result<i32> {
2626/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html
2727/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html
2828/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
29- #[ cfg( not( target_os = "espidf" ) ) ]
29+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
3030#[ inline]
3131#[ doc( alias = "getpriority" ) ]
3232pub fn getpriority_user ( uid : Uid ) -> io:: Result < i32 > {
@@ -46,7 +46,7 @@ pub fn getpriority_user(uid: Uid) -> io::Result<i32> {
4646/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html
4747/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html
4848/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
49- #[ cfg( not( target_os = "espidf" ) ) ]
49+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
5050#[ inline]
5151#[ doc( alias = "getpriority" ) ]
5252pub fn getpriority_pgrp ( pgid : Option < Pid > ) -> io:: Result < i32 > {
@@ -66,7 +66,7 @@ pub fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> {
6666/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html
6767/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html
6868/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
69- #[ cfg( not( target_os = "espidf" ) ) ]
69+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
7070#[ inline]
7171#[ doc( alias = "getpriority" ) ]
7272pub fn getpriority_process ( pid : Option < Pid > ) -> io:: Result < i32 > {
@@ -84,7 +84,7 @@ pub fn getpriority_process(pid: Option<Pid>) -> io::Result<i32> {
8484/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html
8585/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html
8686/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
87- #[ cfg( not( target_os = "espidf" ) ) ]
87+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
8888#[ inline]
8989#[ doc( alias = "setpriority" ) ]
9090pub fn setpriority_user ( uid : Uid , priority : i32 ) -> io:: Result < ( ) > {
@@ -104,7 +104,7 @@ pub fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> {
104104/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html
105105/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html
106106/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
107- #[ cfg( not( target_os = "espidf" ) ) ]
107+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
108108#[ inline]
109109#[ doc( alias = "setpriority" ) ]
110110pub fn setpriority_pgrp ( pgid : Option < Pid > , priority : i32 ) -> io:: Result < ( ) > {
@@ -124,7 +124,7 @@ pub fn setpriority_pgrp(pgid: Option<Pid>, priority: i32) -> io::Result<()> {
124124/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html
125125/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html
126126/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html
127- #[ cfg( not( target_os = "espidf" ) ) ]
127+ #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
128128#[ inline]
129129#[ doc( alias = "setpriority" ) ]
130130pub fn setpriority_process ( pid : Option < Pid > , priority : i32 ) -> io:: Result < ( ) > {
0 commit comments