summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-24 18:55:49 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-24 18:55:49 -0200
commit26422af6088129b99864b75ed4ce5395aa578f2b (patch)
tree17894ef39e9191af62d68c47efe25459ef52233f /unsupported
parenteb229d9aefa622d3ae25fc7c92b9f66590216d8b (diff)
Files moved and added for supporting separate platforms.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c17
-rw-r--r--unsupported/Platform.h17
-rw-r--r--unsupported/UnsupportedCRT.c21
-rw-r--r--unsupported/UnsupportedCRT.h15
-rw-r--r--unsupported/UnsupportedProcessList.c32
-rw-r--r--unsupported/UnsupportedProcessList.h18
6 files changed, 120 insertions, 0 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
new file mode 100644
index 00000000..b65fec40
--- /dev/null
+++ b/unsupported/Platform.c
@@ -0,0 +1,17 @@
+/*
+htop - unsupported/Platform.c
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "Platform.h"
+
+/*{
+#include "Action.h"
+}*/
+
+void Platform_setBindings(Htop_Action* keys) {
+ (void) keys;
+}
+
diff --git a/unsupported/Platform.h b/unsupported/Platform.h
new file mode 100644
index 00000000..65a31993
--- /dev/null
+++ b/unsupported/Platform.h
@@ -0,0 +1,17 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_Platform
+#define HEADER_Platform
+/*
+htop - unsupported/Platform.h
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "Action.h"
+
+void Platform_setBindings(Htop_Action* keys);
+
+
+#endif
diff --git a/unsupported/UnsupportedCRT.c b/unsupported/UnsupportedCRT.c
new file mode 100644
index 00000000..c4e65eeb
--- /dev/null
+++ b/unsupported/UnsupportedCRT.c
@@ -0,0 +1,21 @@
+/*
+htop - UnsupportedCRT.c
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "config.h"
+#include "CRT.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+void CRT_handleSIGSEGV(int sgn) {
+ (void) sgn;
+ CRT_done();
+ fprintf(stderr, "\n\nhtop " VERSION " aborting.\n");
+ fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!");
+ fprintf(stderr, "\nPlease contact your platform package mantainer!\n\n");
+ abort();
+}
+
diff --git a/unsupported/UnsupportedCRT.h b/unsupported/UnsupportedCRT.h
new file mode 100644
index 00000000..3c808ca6
--- /dev/null
+++ b/unsupported/UnsupportedCRT.h
@@ -0,0 +1,15 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_UnsupportedCRT
+#define HEADER_UnsupportedCRT
+/*
+htop - UnsupportedCRT.h
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+void CRT_handleSIGSEGV(int sgn);
+
+
+#endif
diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c
new file mode 100644
index 00000000..6fdca53f
--- /dev/null
+++ b/unsupported/UnsupportedProcessList.c
@@ -0,0 +1,32 @@
+/*
+htop - UnsupportedProcessList.c
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "ProcessList.h"
+
+#include <stdlib.h>
+
+/*{
+
+}*/
+
+ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
+ ProcessList* this = calloc(1, sizeof(ProcessList));
+ ProcessList_init(this, usersTable, pidWhiteList);
+
+ // Update CPU count:
+ this->cpuCount = 1;
+ this->cpus = calloc(1, sizeof(CPUData));
+ this->cpus[0].totalTime = 1;
+ this->cpus[0].totalPeriod = 1;
+
+ return this;
+}
+
+void ProcessList_scan(ProcessList* this) {
+ (void) this;
+ // stub!
+}
diff --git a/unsupported/UnsupportedProcessList.h b/unsupported/UnsupportedProcessList.h
new file mode 100644
index 00000000..d95c8e5c
--- /dev/null
+++ b/unsupported/UnsupportedProcessList.h
@@ -0,0 +1,18 @@
+/* Do not edit this file. It was automatically generated. */
+
+#ifndef HEADER_UnsupportedProcessList
+#define HEADER_UnsupportedProcessList
+/*
+htop - UnsupportedProcessList.h
+(C) 2014 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+
+
+ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList);
+
+void ProcessList_scan(ProcessList* this);
+
+#endif

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