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/ --- .../bin/htop-vim/openbsd/OpenBSDProcessList.h | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 fedora/.local/bin/htop-vim/openbsd/OpenBSDProcessList.h (limited to 'fedora/.local/bin/htop-vim/openbsd/OpenBSDProcessList.h') diff --git a/fedora/.local/bin/htop-vim/openbsd/OpenBSDProcessList.h b/fedora/.local/bin/htop-vim/openbsd/OpenBSDProcessList.h new file mode 100644 index 0000000..89fdb09 --- /dev/null +++ b/fedora/.local/bin/htop-vim/openbsd/OpenBSDProcessList.h @@ -0,0 +1,60 @@ +#ifndef HEADER_OpenBSDProcessList +#define HEADER_OpenBSDProcessList +/* +htop - OpenBSDProcessList.h +(C) 2014 Hisham H. Muhammad +(C) 2015 Michael McConville +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; + + bool online; +} CPUData; + +typedef struct OpenBSDProcessList_ { + ProcessList super; + kvm_t* kd; + + CPUData* cpuData; + int cpuSpeed; + +} OpenBSDProcessList; + + +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); + +bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id); + +#endif -- cgit v1.2.3