File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2668,6 +2668,19 @@ pub enum SysconfVar {
2668
2668
/// Integer value indicating version of the X/Open Portability Guide to
2669
2669
/// which the implementation conforms.
2670
2670
_XOPEN_VERSION = libc:: _SC_XOPEN_VERSION,
2671
+ /// The number of pages of physical memory. Note that it is possible for
2672
+ /// the product of this value to overflow.
2673
+ #[ cfg( any( target_os="android" , target_os="linux" ) ) ]
2674
+ _PHYS_PAGES = libc:: _SC_PHYS_PAGES,
2675
+ /// The number of currently available pages of physical memory.
2676
+ #[ cfg( any( target_os="android" , target_os="linux" ) ) ]
2677
+ _AVPHYS_PAGES = libc:: _SC_AVPHYS_PAGES,
2678
+ /// The number of processors configured.
2679
+ #[ cfg( any( target_os="android" , target_os="linux" ) ) ]
2680
+ _NPROCESSORS_CONF = libc:: _SC_NPROCESSORS_CONF,
2681
+ /// The number of processors currently online (available).
2682
+ #[ cfg( any( target_os="android" , target_os="linux" ) ) ]
2683
+ _NPROCESSORS_ONLN = libc:: _SC_NPROCESSORS_ONLN,
2671
2684
}
2672
2685
2673
2686
/// Get configurable system variables (see
You can’t perform that action at this time.
0 commit comments