summaryrefslogtreecommitdiff
path: root/Userland/pidof.cpp
AgeCommit message (Collapse)Author
2020-10-29Userland: Do not put a trailing space after the resulting pids in pidofAnotherTest
2020-06-12AK: Make string-to-number conversion helpers return OptionalAndreas Kling
Get rid of the weird old signature: - int StringType::to_int(bool& ok) const And replace it with sensible new signature: - Optional<int> StringType::to_int() const
2020-03-08Userspace: Add missing #includes now that AK/StdLibExtras.h is smallerAndreas Kling
2020-02-06LibCore: Remove leading C from filenamesAndreas Kling
2020-02-02LibCore: Put all classes in the Core namespace and remove the leading CAndreas Kling
I've been wanting to do this for a long time. It's time we start being consistent about how this stuff works. The new convention is: - "LibFoo" is a userspace library that provides the "Foo" namespace. That's it :^) This was pretty tedious to convert and I didn't even start on LibGUI yet. But it's coming up next.
2020-01-28Userland+Terminal: Port to new CArgsParser APISergey Bugaev
While at it, also add some niceties and fix some things.
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-08-01pidof: Remove redundant bool check.Andreas Kling
Found by PVS-Studio.
2019-07-10Userland+LibCore: Use CProcessStatisticsReader to implement top.Andreas Kling
Also tweaked CProcessStatisticsReader a bit to simplify the API.
2019-06-22Userland: Fix many compiler warnings.Andreas Kling
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2019-05-17LibCore: Move AK/ArgsParser to LibCore/CArgsParserRobin Burchell
Also rename the classes to match LibCore naming style. This means that it's no longer incorrectly linked into LibC and Kernel.
2019-05-17ArgsParser: Remove prefix from constructorRobin Burchell
It makes sense to keep this consistent between applications, and the purpose of the string is not immediately obvious from an API perspective. If we need to make it configurable later, that can come from a setter.
2019-05-17ArgsParser: Remove boolean trap on add_argRobin Burchell
Rather than requiring a boolean for whether or not the argument is required, add some new methods to make the purpose of the bool explicit.
2019-05-16Added CProcessStatisticsReader to avoid having to parse /proc/all (#35)GuillaumeGas
* Added CProcessStatisticsReader to avoid having to parse /proc/all * Took @awesomekling's feedbacks into account * Fixed indentation and replaced tabs by spaces
2019-05-13Feature/pidof (#31)GuillaumeGas
* Added killall command * Fixed feedbacks of awesomekling * Implemented pidof program and helper to parse arguments called ArgsParser. * Fixed feedbacks in pidof implem. Fixes #26