Page MenuHomeFreeBSD

MFC r342952:
ClosedPublic

Authored by ngie on Mar 10 2019, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 1 2024, 3:57 PM
Unknown Object (File)
Sep 27 2024, 8:32 PM
Unknown Object (File)
Sep 22 2024, 6:02 AM
Unknown Object (File)
Sep 22 2024, 5:24 AM
Unknown Object (File)
Sep 16 2024, 6:47 PM
Unknown Object (File)
Sep 14 2024, 5:39 AM
Unknown Object (File)
Sep 8 2024, 3:22 PM
Unknown Object (File)
Sep 8 2024, 3:08 AM
Subscribers

Details

Summary

Add Linux compatibility support for SC_NPROCESSORS_{CONF,ONLN} as _SC_NPROCESSORS_{CONF,ONLN}

The goal of this change is to make it easier to use getconf to query
the number of available processors.

Sadly it's unclear per POSIX, which form (with a preceding _ or
lacking it) is correct. I will bring this up on the Austin Group list so
this point is clarified for implementors that might rely on this getconf
variable in future POSIX spec versions.

This is something I noticed when trying to import GoogleTest to FreeBSD
as one of the CI scripts uses this variable on Linux.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22985
Build 22063: arc lint + arc unit