| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(with inderminate value) for failure, rather than the return value of -1
ok mortimer
|
|
|
|
|
|
| |
Ports build by naddy@
Tested by visa on octeon
Tested by kettenis on macppc and sparc64
|
| |
|
|
|
|
|
|
|
| |
headers, so also compile the needed source files for it. While
there, switch to compiling libc++ with C++14.
Prompted by, initial patch from and ok espie@, ok jca@
|
|
|
|
|
|
|
| |
In OpenBSD's case, we know it has optimal entropy properties,
so just say so.
okay mikeb@, "why not" deraadt@
|
|
|
|
| |
ok patrick@
|
|
|
|
| |
importing, like we do for the other parts of the LLVM import.
|
| |
|
|
|
|
|
|
| |
Tested by visa on octeon
Tested by kettenis on arm64, armv7 and sparc64
"go for it" deraadt and sthen
|
| |
|
|
|
|
| |
ok guenther@ tb@ deraadt@
|
|
|
|
|
|
| |
a C++ shared library will work correctly with modern linkers.
ok guenther@
|
| |
|
|
|
|
|
|
| |
code which breaks quiet a few things, define _LIBCPP_BUILDING_LIBRARY
for the complete build to get the needed definitions in debug.cpp without
enabling debug code
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The introduction of hw.smt means that logical CPUs can be disabled
after boot and prior to suspend/resume. If hw.smt=0 (the default),
there needs to be a way to count the number of hardware threads
available on the system at any given time.
So, import HW_NCPUONLINE/hw.ncpuonline from NetBSD and document it.
hw.ncpu becomes equal to the number of CPUs given to sched_init_cpu()
during boot, while hw.ncpuonline is equal to the number of CPUs available
to the scheduler in the cpuset "sched_all_cpus". Set_SC_NPROCESSORS_ONLN
equal to this new sysctl and keep _SC_NPROCESSORS_CONF equal to hw.ncpu.
This is preferable to adding a new sysctl to count the number of
configured CPUs and keeping hw.ncpu equal to the number of online
CPUs because such a change would break software in the ecosystem
that relies on HW_NCPU/hw.ncpu to measure CPU usage and the like.
Such software in base includes top(1), systat(1), and snmpd(8),
and perhaps others.
We don't need additional locking to count the cardinality of a cpuset
in this case because the only interfaces that can modify said cardinality
are sysctl(2) and ioctl(2), both of which are under the KERNEL_LOCK.
Software using HW_NCPU/hw.ncpu to determine optimal parallism will need
to be updated to use HW_NCPUONLINE/hw.ncpuonline. Until then, such software
may perform suboptimally. However, most changes will be similar to the
change included here for libcxx's std::thread:hardware_concurrency():
using HW_NCPUONLINE in lieu of HW_NCPU should be sufficient for determining
optimal parallelism for most software if the change to _SC_NPROCESSORS_ONLN
is insufficient.
Prompted by deraadt. Discussed at length with kettenis, deraadt, and sthen.
Lots of patch tweaks from kettenis.
ok kettenis, "proceed" deraadt
|
|
|
|
|
|
|
|
|
|
|
|
| |
Complete in the sense that all POSIX *locale(3) and *_l(3) functions
are included, but in OpenBSD, we of course only really care about
LC_CTYPE and we only support ASCII and UTF-8.
With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.
|
|
|
|
|
| |
(breaks lincity-ng)
okay kettenis@
|
|
|
|
|
|
|
| |
doesn't actually flip the switch yet, so aarch64 continues to be the only
architecture for which we build clang.
ok jsg@, deraadt@
|
|
|
|
| |
clang and clang++.
|
|
|
|
|
|
| |
enter the directory to create an objdir.
ok deraadt@
|
|
|
|
|
|
|
| |
This allows our build system to selfhost itself after the initial
clang bootstrap without relying on an external compiler.
with input from and ok kettenis@
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
| |
clang++.
ok pascal@, patrick@
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
| |
Tweaks from pascal@
ok guenther@ kettenis@
|
|
|