mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Unsupported: pass compilation
This commit is contained in:

committed by
cgzones

parent
bd694c0ce6
commit
3acf28c259
@ -5,17 +5,21 @@ Released under the GNU GPLv2, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "ProcessList.h"
|
||||
#include "UnsupportedProcess.h"
|
||||
#include "UnsupportedProcessList.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ProcessList.h"
|
||||
#include "UnsupportedProcess.h"
|
||||
|
||||
|
||||
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId) {
|
||||
ProcessList* this = xCalloc(1, sizeof(ProcessList));
|
||||
ProcessList_init(this, Class(Process), usersTable, pidMatchList, userId);
|
||||
|
||||
this->cpuCount = 1;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -41,7 +45,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
proc->pid = 1;
|
||||
proc->ppid = 1;
|
||||
proc->tgid = 0;
|
||||
proc->comm = "<unsupported architecture>";
|
||||
free_and_xStrdup(&proc->comm, "<unsupported architecture>");
|
||||
proc->basenameOffset = 0;
|
||||
proc->updated = true;
|
||||
|
||||
@ -70,4 +74,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
|
||||
proc->minflt = 20;
|
||||
proc->majflt = 20;
|
||||
|
||||
if (!preExisting)
|
||||
ProcessList_add(super, proc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user