mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 21:44:36 +03:00
Files moved and added for supporting separate platforms.
This commit is contained in:
17
unsupported/Platform.c
Normal file
17
unsupported/Platform.c
Normal file
@ -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;
|
||||
}
|
||||
|
17
unsupported/Platform.h
Normal file
17
unsupported/Platform.h
Normal file
@ -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
|
21
unsupported/UnsupportedCRT.c
Normal file
21
unsupported/UnsupportedCRT.c
Normal file
@ -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();
|
||||
}
|
||||
|
15
unsupported/UnsupportedCRT.h
Normal file
15
unsupported/UnsupportedCRT.h
Normal file
@ -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
|
32
unsupported/UnsupportedProcessList.c
Normal file
32
unsupported/UnsupportedProcessList.c
Normal file
@ -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!
|
||||
}
|
18
unsupported/UnsupportedProcessList.h
Normal file
18
unsupported/UnsupportedProcessList.h
Normal file
@ -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
|
Reference in New Issue
Block a user