From 52e25213825024b8bb446eb26b03bedc9d5c2103 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:00:29 +0200 Subject: Adding upstream version 3.2.2. Signed-off-by: Daniel Baumann --- pcp-htop.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pcp-htop.c (limited to 'pcp-htop.c') diff --git a/pcp-htop.c b/pcp-htop.c new file mode 100644 index 0000000..2713c89 --- /dev/null +++ b/pcp-htop.c @@ -0,0 +1,26 @@ +/* +htop - pcp-htop.c +(C) 2004-2011 Hisham H. Muhammad +(C) 2020-2021 htop dev team +Released under the GNU GPLv2+, see the COPYING file +in the source distribution for its full text. +*/ + +#include "config.h" // IWYU pragma: keep + +#include + +#include "CommandLine.h" +#include "Platform.h" + + +int main(int argc, char** argv) { + const char* name = "pcp-htop"; + pmSetProgname(name); + + /* extract environment variables */ + opts.flags |= PM_OPTFLAG_ENV_ONLY; + (void)pmGetOptions(argc, argv, &opts); + + return CommandLine_run(name, argc, argv); +} -- cgit v1.2.3