diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-17 14:55:23 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-17 14:55:23 +0000 |
| commit | 76919d7ec2707cfaafde0091c7801e9df4977dc1 (patch) | |
| tree | dcc576c09ce4d2ed3e68850d1ea9438e5c4e81ae /sys | |
| parent | c61a9e9a5452e7f6156cdc9e5c1dbe6827e1be44 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_mib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index c84d4b28913c..ac6196c50772 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -261,6 +261,13 @@ sysctl_hw_machine_arch(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_hw, HW_MACHINE_ARCH, machine_arch, CTLTYPE_STRING | CTLFLAG_RD, NULL, 0, sysctl_hw_machine_arch, "A", "System architecture"); +SYSCTL_STRING(_kern, OID_AUTO, supported_archs, CTLFLAG_RD | CTLFLAG_MPSAFE, +#ifdef COMPAT_FREEBSD32 + MACHINE_ARCH " " MACHINE_ARCH32, 0, "Supported architectures for binaries"); +#else + MACHINE_ARCH, 0, "Supported architectures for binaries"); +#endif + static int sysctl_hostname(SYSCTL_HANDLER_ARGS) { |
