Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
78f2933e
Commit
78f2933e
authored
Oct 19, 2015
by
Hisham Muhammad
Browse files
Regenerate platform-dependent headers.
Closes #293.
parent
e906c0dd
Changes
7
Hide whitespace changes
Inline
Side-by-side
darwin/Platform.h
View file @
78f2933e
...
...
@@ -16,6 +16,10 @@ in the source distribution for its full text.
extern
ProcessField
Platform_defaultFields
[];
extern
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
ProcessFieldData
Process_fields
[];
extern
MeterClass
*
Platform_meterTypes
[];
...
...
@@ -30,6 +34,8 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen);
int
Platform_getMaxPid
();
extern
ProcessPidColumn
Process_pidColumns
[];
double
Platform_setCPUValues
(
Meter
*
mtr
,
int
cpu
);
void
Platform_setMemoryValues
(
Meter
*
mtr
);
...
...
freebsd/FreeBSDCRT.h
View file @
78f2933e
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_
Unsupported
CRT
#define HEADER_
Unsupported
CRT
#ifndef HEADER_
FreeBSD
CRT
#define HEADER_
FreeBSD
CRT
/*
htop - UnsupportedCRT.h
(C) 2014 Hisham H. Muhammad
...
...
freebsd/FreeBSDProcess.h
View file @
78f2933e
...
...
@@ -12,15 +12,22 @@ in the source distribution for its full text.
typedef
enum
FreeBSDProcessFields
{
// Add platform-specific fields here, with ids >= 100
LAST_PROCESSFIELD
=
100
,
JID
=
100
,
JAIL
=
101
,
LAST_PROCESSFIELD
=
102
,
}
FreeBSDProcessField
;
typedef
struct
FreeBSDProcess_
{
Process
super
;
int
kernel
;
int
jid
;
char
*
jname
;
}
FreeBSDProcess
;
#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) (_process->
pgrp
==
0
)
#define Process_isKernelThread(_process) (_process->
kernel
==
1
)
#endif
#ifndef Process_isUserlandThread
...
...
@@ -32,7 +39,7 @@ extern ProcessClass FreeBSDProcess_class;
extern
ProcessFieldData
Process_fields
[];
extern
char
*
Process_pid
Format
;
extern
ProcessPidColumn
Process_pid
Columns
[]
;
FreeBSDProcess
*
FreeBSDProcess_new
(
Settings
*
settings
);
...
...
freebsd/FreeBSDProcessList.h
View file @
78f2933e
...
...
@@ -11,6 +11,12 @@ in the source distribution for its full text.
#include <kvm.h>
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#define JAIL_ERRMSGLEN 1024
char
jail_errmsg
[
JAIL_ERRMSGLEN
];
typedef
struct
CPUData_
{
unsigned
long
long
int
totalTime
;
...
...
@@ -32,6 +38,8 @@ void ProcessList_delete(ProcessList* this);
char
*
FreeBSDProcessList_readProcessName
(
kvm_t
*
kd
,
struct
kinfo_proc
*
kproc
,
int
*
basenameEnd
);
char
*
FreeBSDProcessList_readJailName
(
struct
kinfo_proc
*
kproc
);
void
ProcessList_goThroughEntries
(
ProcessList
*
this
);
#endif
freebsd/Platform.h
View file @
78f2933e
...
...
@@ -11,6 +11,7 @@ in the source distribution for its full text.
#include "Action.h"
#include "BatteryMeter.h"
#include "SignalsPanel.h"
extern
ProcessFieldData
Process_fields
[];
...
...
@@ -19,6 +20,10 @@ extern ProcessField Platform_defaultFields[];
extern
int
Platform_numberOfFields
;
extern
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
void
Platform_setBindings
(
Htop_Action
*
keys
);
extern
MeterClass
*
Platform_meterTypes
[];
...
...
openbsd/OpenBSDCRT.h
View file @
78f2933e
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_
Unsupported
CRT
#define HEADER_
Unsupported
CRT
#ifndef HEADER_
OpenBSD
CRT
#define HEADER_
OpenBSD
CRT
/*
htop - UnsupportedCRT.h
(C) 2014 Hisham H. Muhammad
...
...
openbsd/Platform.h
View file @
78f2933e
...
...
@@ -12,7 +12,6 @@ in the source distribution for its full text.
#include "Action.h"
#include "BatteryMeter.h"
#include "SignalsPanel.h"
extern
ProcessFieldData
Process_fields
[];
...
...
@@ -36,6 +35,9 @@ extern ProcessField Platform_defaultFields[];
extern
int
Platform_numberOfFields
;
/*
* See /usr/include/sys/signal.h
*/
extern
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment