summaryrefslogtreecommitdiff
path: root/Userland/Utilities/nproc.cpp
AgeCommit message (Collapse)Author
2022-12-12LibCore: Rename `Stream::read_all` to `read_until_eof`Tim Schumacher
This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line.
2022-11-19nproc: Port to Core::StreamSam Atkins
2022-10-25Utilities: Use new global variables at /sys/kernel/ directoryLiav A
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-23LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCoreAndreas Kling
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
2021-11-22nproc: Port to LibMain :^)Andreas Kling
2021-09-11nproc: Avoid making StringView of temporary ByteBufferBen Wiederhake
2021-09-01Everywhere: Use my cool new @serenityos.org email addressPeter Elliott
2021-08-01Utilities: Remove unused header includesBrian Gianforcaro
2021-05-12LibCore+Everywhere: Move OpenMode out of IODeviceAli Mohammad Pur
...and make it an enum class so people don't omit "OpenMode".
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-12Userland: Add nproc utilityPeter Elliott
nproc prints the number of processors on the system. Our ports system uses it.