Page MenuHomeFreeBSD

MFC r342952:
ClosedPublic

Authored by ngie on Mar 10 2019, 4:21 PM.
Tags
None
Referenced Files
F82870960: D19527.id54894.diff
Fri, May 3, 9:58 AM
F82870949: D19527.id.diff
Fri, May 3, 9:58 AM
F82870933: D19527.id54937.diff
Fri, May 3, 9:58 AM
F82858855: D19527.diff
Fri, May 3, 7:03 AM
Unknown Object (File)
Jan 13 2024, 3:26 AM
Unknown Object (File)
Dec 20 2023, 3:41 AM
Unknown Object (File)
Jun 26 2023, 11:09 PM
Unknown Object (File)
Jun 15 2023, 7:10 PM
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 Not Applicable
Unit
Tests Not Applicable