File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1559,6 +1559,7 @@ pub const RLIMIT_MSGQUEUE: ::c_int = 12;
1559
1559
pub const RLIMIT_NICE : :: c_int = 13 ;
1560
1560
pub const RLIMIT_RTPRIO : :: c_int = 14 ;
1561
1561
1562
+ #[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
1562
1563
pub const RLIM_NLIMITS : :: c_int = 16 ;
1563
1564
pub const RLIM_INFINITY : :: rlim_t = !0 ;
1564
1565
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ cfg_if! {
257
257
pub const RLIMIT_NICE : :: __rlimit_resource_t = 13 ;
258
258
pub const RLIMIT_RTPRIO : :: __rlimit_resource_t = 14 ;
259
259
pub const RLIMIT_RTTIME : :: __rlimit_resource_t = 15 ;
260
+ #[ allow( deprecated) ]
260
261
pub const RLIMIT_NLIMITS : :: __rlimit_resource_t = RLIM_NLIMITS ;
261
262
262
263
} else if #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ] {
@@ -277,16 +278,20 @@ cfg_if! {
277
278
pub const RLIMIT_NICE : :: c_int = 13 ;
278
279
pub const RLIMIT_RTPRIO : :: c_int = 14 ;
279
280
pub const RLIMIT_RTTIME : :: c_int = 15 ;
281
+ #[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
280
282
pub const RLIM_NLIMITS : :: c_int = 15 ;
283
+ #[ allow( deprecated) ]
281
284
pub const RLIMIT_NLIMITS : :: c_int = RLIM_NLIMITS ;
282
285
}
283
286
}
284
287
285
288
cfg_if ! {
286
289
if #[ cfg( target_env = "gnu" ) ] {
290
+ #[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
287
291
pub const RLIM_NLIMITS : :: __rlimit_resource_t = 16 ;
288
292
}
289
293
else if #[ cfg( target_env = "uclibc" ) ] {
294
+ #[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
290
295
pub const RLIM_NLIMITS : :: __rlimit_resource_t = 15 ;
291
296
}
292
297
}
You can’t perform that action at this time.
0 commit comments