From 5bb312993960adaa663701391a83f76b81edc60a Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 21 Dec 2025 16:57:44 +0900 Subject: created htop-vim/ --- .../.local/bin/htop-vim/netbsd/NetBSDProcessList.h | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 fedora/.local/bin/htop-vim/netbsd/NetBSDProcessList.h (limited to 'fedora/.local/bin/htop-vim/netbsd/NetBSDProcessList.h') diff --git a/fedora/.local/bin/htop-vim/netbsd/NetBSDProcessList.h b/fedora/.local/bin/htop-vim/netbsd/NetBSDProcessList.h new file mode 100644 index 0000000..d228f48 --- /dev/null +++ b/fedora/.local/bin/htop-vim/netbsd/NetBSDProcessList.h @@ -0,0 +1,58 @@ +#ifndef HEADER_NetBSDProcessList +#define HEADER_NetBSDProcessList +/* +htop - NetBSDProcessList.h +(C) 2014 Hisham H. Muhammad +(C) 2015 Michael McConville +(C) 2021 Santhosh Raju +(C) 2021 htop dev team +Released under the GNU GPLv2+, see the COPYING file +in the source distribution for its full text. +*/ + +#include +#include +#include + +#include "Hashtable.h" +#include "ProcessList.h" +#include "UsersTable.h" + + +typedef struct CPUData_ { + unsigned long long int totalTime; + unsigned long long int userTime; + unsigned long long int niceTime; + unsigned long long int sysTime; + unsigned long long int sysAllTime; + unsigned long long int spinTime; + unsigned long long int intrTime; + unsigned long long int idleTime; + + unsigned long long int totalPeriod; + unsigned long long int userPeriod; + unsigned long long int nicePeriod; + unsigned long long int sysPeriod; + unsigned long long int sysAllPeriod; + unsigned long long int spinPeriod; + unsigned long long int intrPeriod; + unsigned long long int idlePeriod; + + double frequency; +} CPUData; + +typedef struct NetBSDProcessList_ { + ProcessList super; + kvm_t* kd; + + CPUData* cpuData; +} NetBSDProcessList; + + +ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId); + +void ProcessList_delete(ProcessList* this); + +void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate); + +#endif -- cgit v1.2.3