Unsupported: pass compilation

This commit is contained in:
Christian Göttsche
2021-01-28 18:19:38 +01:00
committed by cgzones
parent bd694c0ce6
commit 3acf28c259
6 changed files with 95 additions and 21 deletions

View File

@ -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);
}