diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:58:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:58:07 +0000 |
commit | 10eea2ab1bae2a8ec159d81c0446fd8061b33e2b (patch) | |
tree | e8270dd60ec096bee8157dbadf029e15ed584592 /openbsd/OpenBSDProcess.h | |
parent | Initial commit. (diff) | |
download | htop-10eea2ab1bae2a8ec159d81c0446fd8061b33e2b.tar.xz htop-10eea2ab1bae2a8ec159d81c0446fd8061b33e2b.zip |
Adding upstream version 3.3.0.upstream/3.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'openbsd/OpenBSDProcess.h')
-rw-r--r-- | openbsd/OpenBSDProcess.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/openbsd/OpenBSDProcess.h b/openbsd/OpenBSDProcess.h new file mode 100644 index 0000000..aac4b31 --- /dev/null +++ b/openbsd/OpenBSDProcess.h @@ -0,0 +1,33 @@ +#ifndef HEADER_OpenBSDProcess +#define HEADER_OpenBSDProcess +/* +htop - OpenBSDProcess.h +(C) 2015 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 <stdbool.h> + +#include "Machine.h" +#include "Object.h" +#include "Process.h" + + +typedef struct OpenBSDProcess_ { + Process super; + + /* 'Kernel virtual addr of u-area' to detect main threads */ + uint64_t addr; +} OpenBSDProcess; + +extern const ProcessClass OpenBSDProcess_class; + +extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD]; + +Process* OpenBSDProcess_new(const Machine* host); + +void Process_delete(Object* cast); + +#endif |