@@ -50,25 +50,55 @@ fn main() -> rustix::io::Result<()> {
50
50
println ! ( "Stack Limit: {:?}" , getrlimit( Resource :: Stack ) ) ;
51
51
#[ cfg( not( target_os = "haiku" ) ) ]
52
52
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" ) ) ) ]
54
54
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" ) ) ) ]
56
56
println ! ( "Nproc Limit: {:?}" , getrlimit( Resource :: Nproc ) ) ;
57
57
#[ cfg( not( target_os = "solaris" ) ) ]
58
58
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" ) ) ) ]
60
60
println ! ( "Memlock Limit: {:?}" , getrlimit( Resource :: Memlock ) ) ;
61
61
#[ cfg( not( target_os = "openbsd" ) ) ]
62
62
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
+ ) ) ) ]
64
70
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
+ ) ) ) ]
66
78
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
+ ) ) ) ]
68
86
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
+ ) ) ) ]
70
94
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
+ ) ) ) ]
72
102
println ! ( "Rtprio Limit: {:?}" , getrlimit( Resource :: Rtprio ) ) ;
73
103
#[ cfg( not( any(
74
104
bsd,
@@ -77,6 +107,7 @@ fn main() -> rustix::io::Result<()> {
77
107
target_os = "android" ,
78
108
target_os = "emscripten" ,
79
109
target_os = "haiku" ,
110
+ target_os = "cygwin" ,
80
111
) ) ) ]
81
112
println ! ( "Rttime Limit: {:?}" , getrlimit( Resource :: Rttime ) ) ;
82
113
}
0 commit comments