diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-12-02 00:44:36 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-12-02 00:44:36 +0000 |
commit | 06dcbdd38dc7bc22211c634a9a1aa35b3b601ac4 (patch) | |
tree | 7d4247c7380cdb141ce4e559be5aa1d7ad54c876 /contrib/gcclibs/libcpp | |
parent | 49bd75ce1c93f586d0abc4875680e59dc61f7833 (diff) | |
download | FreeBSD-src-06dcbdd38dc7bc22211c634a9a1aa35b3b601ac4.zip FreeBSD-src-06dcbdd38dc7bc22211c634a9a1aa35b3b601ac4.tar.gz |
Add new sysctl, kern.supported_abis, containing the list of FreeBSD
MACHINE_ARCH values whose binaries this kernel can run. This patch provides
a feature requested for implementing pkgng ABI identifiers in a robust
way.
The list is designed to indicate whether, say, an i386 package can be run on
the current system. If kern.supported_abis contains "i386", then the answer
is yes. Otherwise, the answer is no.
At the moment, this only supports MACHINE_ARCH and MACHINE_ARCH32. As we
gain support for more interesting combinations, this needs to become more
flexible, possibily through the sysent framework, along with the
hw.machine_arch emulation immediately preceding this code in kern_mib.c.
Reviewed by: imp
MFC after: 3 days
Diffstat (limited to 'contrib/gcclibs/libcpp')
0 files changed, 0 insertions, 0 deletions