aboutsummaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.h
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2018-02-05 14:48:51 +0200
committerGraham Inggs <ginggs@debian.org>2018-02-05 14:48:51 +0200
commit2ee50d030178cede83eb9d0005fbc19f819d30fe (patch)
tree67d75c0a7c47e15bed9d0735ecf12abec4f8157b /linux/LinuxProcessList.h
parent31b71b67011fa52f091df6fe536a11d6d0bfb256 (diff)
downloaddebian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.tar.gz
debian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.tar.bz2
debian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.zip
Imported Upstream version 2.1.0upstream/2.1.0
Diffstat (limited to 'linux/LinuxProcessList.h')
-rw-r--r--linux/LinuxProcessList.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h
index 9772581..5005220 100644
--- a/linux/LinuxProcessList.h
+++ b/linux/LinuxProcessList.h
@@ -9,6 +9,9 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
+#ifdef HAVE_DELAYACCT
+#endif
+
#include "ProcessList.h"
@@ -40,11 +43,23 @@ typedef struct CPUData_ {
unsigned long long int guestPeriod;
} CPUData;
+typedef struct TtyDriver_ {
+ char* path;
+ unsigned int major;
+ unsigned int minorFrom;
+ unsigned int minorTo;
+} TtyDriver;
+
typedef struct LinuxProcessList_ {
ProcessList super;
-
+
CPUData* cpus;
-
+ TtyDriver* ttyDrivers;
+
+ #ifdef HAVE_DELAYACCT
+ struct nl_sock *netlink_socket;
+ int netlink_family;
+ #endif
} LinuxProcessList;
#ifndef PROCDIR
@@ -59,6 +74,10 @@ typedef struct LinuxProcessList_ {
#define PROCMEMINFOFILE PROCDIR "/meminfo"
#endif
+#ifndef PROCTTYDRIVERSFILE
+#define PROCTTYDRIVERSFILE PROCDIR "/tty/drivers"
+#endif
+
#ifndef PROC_LINE_LENGTH
#define PROC_LINE_LENGTH 512
#endif
@@ -67,7 +86,11 @@ typedef struct LinuxProcessList_ {
#ifndef CLAMP
#define CLAMP(x,low,high) (((x)>(high))?(high):(((x)<(low))?(low):(x)))
#endif
-
+
+#ifdef HAVE_DELAYACCT
+
+#endif
+
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
void ProcessList_delete(ProcessList* pl);
@@ -89,6 +112,10 @@ void ProcessList_delete(ProcessList* pl);
#endif
+#ifdef HAVE_DELAYACCT
+
+#endif
+
void ProcessList_goThroughEntries(ProcessList* super);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy