diff options
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Platform.c | 17 | ||||
-rw-r--r-- | unsupported/Platform.h | 17 | ||||
-rw-r--r-- | unsupported/UnsupportedCRT.c | 21 | ||||
-rw-r--r-- | unsupported/UnsupportedCRT.h | 15 | ||||
-rw-r--r-- | unsupported/UnsupportedProcessList.c | 32 | ||||
-rw-r--r-- | unsupported/UnsupportedProcessList.h | 18 |
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 |