From e7372d18a1a661d8c3dba9f51e1f17b5f94171a7 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Wed, 10 Jan 2024 11:17:08 +0100 Subject: New upstream version 3.3.0 --- unsupported/UnsupportedProcessList.c | 100 ----------------------------------- 1 file changed, 100 deletions(-) delete mode 100644 unsupported/UnsupportedProcessList.c (limited to 'unsupported/UnsupportedProcessList.c') diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c deleted file mode 100644 index 5291797..0000000 --- a/unsupported/UnsupportedProcessList.c +++ /dev/null @@ -1,100 +0,0 @@ -/* -htop - UnsupportedProcessList.c -(C) 2014 Hisham H. Muhammad -Released under the GNU GPLv2+, see the COPYING file -in the source distribution for its full text. -*/ - -#include "UnsupportedProcessList.h" - -#include -#include - -#include "ProcessList.h" -#include "UnsupportedProcess.h" - - -ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId) { - ProcessList* this = xCalloc(1, sizeof(ProcessList)); - ProcessList_init(this, Class(Process), usersTable, dynamicMeters, dynamicColumns, pidMatchList, userId); - - this->existingCPUs = 1; - this->activeCPUs = 1; - - return this; -} - -void ProcessList_delete(ProcessList* this) { - ProcessList_done(this); - free(this); -} - -void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { - - // in pause mode only gather global data for meters (CPU/memory/...) - if (pauseProcessUpdate) { - return; - } - - bool preExisting = true; - Process* proc; - - proc = ProcessList_getProcess(super, 1, &preExisting, UnsupportedProcess_new); - - /* Empty values */ - proc->time = proc->time + 10; - proc->pid = 1; - proc->ppid = 1; - proc->tgid = 0; - - Process_updateComm(proc, "commof16char"); - Process_updateCmdline(proc, "", 0, 0); - Process_updateExe(proc, "/path/to/executable"); - - if (proc->settings->ss->flags & PROCESS_FLAG_CWD) { - free_and_xStrdup(&proc->procCwd, "/current/working/directory"); - } - - proc->updated = true; - - proc->state = RUNNING; - proc->isKernelThread = false; - proc->isUserlandThread = false; - proc->show = true; /* Reflected in proc->settings-> "hideXXX" really */ - proc->pgrp = 0; - proc->session = 0; - proc->tty_nr = 0; - proc->tty_name = NULL; - proc->tpgid = 0; - proc->processor = 0; - - proc->percent_cpu = 2.5; - proc->percent_mem = 2.5; - Process_updateCPUFieldWidths(proc->percent_cpu); - - proc->st_uid = 0; - proc->user = "nobody"; /* Update whenever proc->st_uid is changed */ - - proc->priority = 0; - proc->nice = 0; - proc->nlwp = 1; - proc->starttime_ctime = 1433116800; // Jun 01, 2015 - Process_fillStarttimeBuffer(proc); - - proc->m_virt = 100; - proc->m_resident = 100; - - proc->minflt = 20; - proc->majflt = 20; - - if (!preExisting) - ProcessList_add(super, proc); -} - -bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id) { - assert(id < super->existingCPUs); - - (void) super; (void) id; - - return true; -} -- cgit v1.2.3