aboutsummaryrefslogtreecommitdiffstats
path: root/pcp-htop.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
commit69f439eff387a6ecb52734e400b297a3c85f2285 (patch)
tree2a988b7868b749654796183ba70b4272965da1bf /pcp-htop.c
parentc55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff)
downloaddebian_htop-upstream/3.1.0.tar.gz
debian_htop-upstream/3.1.0.tar.bz2
debian_htop-upstream/3.1.0.zip
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'pcp-htop.c')
-rw-r--r--pcp-htop.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/pcp-htop.c b/pcp-htop.c
new file mode 100644
index 0000000..855bb3f
--- /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 <pcp/pmapi.h>
+
+#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);
+}

© 2014-2024 Faster IT GmbH | imprint | privacy policy