@@ -50,25 +50,55 @@ fn main() -> rustix::io::Result<()> {
5050        println ! ( "Stack Limit: {:?}" ,  getrlimit( Resource :: Stack ) ) ; 
5151        #[ cfg( not( target_os = "haiku" ) ) ]  
5252        println ! ( "Core Limit: {:?}" ,  getrlimit( Resource :: Core ) ) ; 
53-         #[ cfg( not( any( solarish,  target_os = "haiku" ) ) ) ]  
53+         #[ cfg( not( any( solarish,  target_os = "haiku" ,  target_os =  "cygwin" ) ) ) ]  
5454        println ! ( "Rss Limit: {:?}" ,  getrlimit( Resource :: Rss ) ) ; 
55-         #[ cfg( not( any( solarish,  target_os = "haiku" ) ) ) ]  
55+         #[ cfg( not( any( solarish,  target_os = "haiku" ,  target_os =  "cygwin" ) ) ) ]  
5656        println ! ( "Nproc Limit: {:?}" ,  getrlimit( Resource :: Nproc ) ) ; 
5757        #[ cfg( not( target_os = "solaris" ) ) ]  
5858        println ! ( "Nofile Limit: {:?}" ,  getrlimit( Resource :: Nofile ) ) ; 
59-         #[ cfg( not( any( solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
59+         #[ cfg( not( any( solarish,  target_os = "aix" ,  target_os = "haiku" ,  target_os =  "cygwin" ) ) ) ]  
6060        println ! ( "Memlock Limit: {:?}" ,  getrlimit( Resource :: Memlock ) ) ; 
6161        #[ cfg( not( target_os = "openbsd" ) ) ]  
6262        println ! ( "As Limit: {:?}" ,  getrlimit( Resource :: As ) ) ; 
63-         #[ cfg( not( any( bsd,  solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
63+         #[ cfg( not( any(  
64+             bsd,  
65+             solarish,  
66+             target_os = "aix" ,  
67+             target_os = "haiku" ,  
68+             target_os = "cygwin" ,  
69+         ) ) ) ]  
6470        println ! ( "Locks Limit: {:?}" ,  getrlimit( Resource :: Locks ) ) ; 
65-         #[ cfg( not( any( bsd,  solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
71+         #[ cfg( not( any(  
72+             bsd,  
73+             solarish,  
74+             target_os = "aix" ,  
75+             target_os = "haiku" ,  
76+             target_os = "cygwin" ,  
77+         ) ) ) ]  
6678        println ! ( "Sigpending Limit: {:?}" ,  getrlimit( Resource :: Sigpending ) ) ; 
67-         #[ cfg( not( any( bsd,  solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
79+         #[ cfg( not( any(  
80+             bsd,  
81+             solarish,  
82+             target_os = "aix" ,  
83+             target_os = "haiku" ,  
84+             target_os = "cygwin" ,  
85+         ) ) ) ]  
6886        println ! ( "Msgqueue Limit: {:?}" ,  getrlimit( Resource :: Msgqueue ) ) ; 
69-         #[ cfg( not( any( bsd,  solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
87+         #[ cfg( not( any(  
88+             bsd,  
89+             solarish,  
90+             target_os = "aix" ,  
91+             target_os = "haiku" ,  
92+             target_os = "cygwin" ,  
93+         ) ) ) ]  
7094        println ! ( "Nice Limit: {:?}" ,  getrlimit( Resource :: Nice ) ) ; 
71-         #[ cfg( not( any( bsd,  solarish,  target_os = "aix" ,  target_os = "haiku" ) ) ) ]  
95+         #[ cfg( not( any(  
96+             bsd,  
97+             solarish,  
98+             target_os = "aix" ,  
99+             target_os = "haiku" ,  
100+             target_os = "cygwin" ,  
101+         ) ) ) ]  
72102        println ! ( "Rtprio Limit: {:?}" ,  getrlimit( Resource :: Rtprio ) ) ; 
73103        #[ cfg( not( any(  
74104            bsd,  
@@ -77,6 +107,7 @@ fn main() -> rustix::io::Result<()> {
77107            target_os = "android" ,  
78108            target_os = "emscripten" ,  
79109            target_os = "haiku" ,  
110+             target_os = "cygwin" ,  
80111        ) ) ) ]  
81112        println ! ( "Rttime Limit: {:?}" ,  getrlimit( Resource :: Rttime ) ) ; 
82113    } 
0 commit comments