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
6d4df3d1
Commit
6d4df3d1
authored
Aug 30, 2016
by
Hisham
Browse files
Merge branch 'master' of
https://github.com/hishamhm/htop
parents
d4a8023b
99f7ff9b
Changes
10
Show whitespace changes
Inline
Side-by-side
darwin/Platform.c
View file @
6d4df3d1
...
...
@@ -33,7 +33,7 @@ in the source distribution for its full text.
ProcessField
Platform_defaultFields
[]
=
{
PID
,
USER
,
PRIORITY
,
NICE
,
M_SIZE
,
M_RESIDENT
,
STATE
,
PERCENT_CPU
,
PERCENT_MEM
,
TIME
,
COMM
,
0
};
SignalItem
Platform_signals
[]
=
{
const
SignalItem
Platform_signals
[]
=
{
{
.
name
=
" 0 Cancel"
,
.
number
=
0
},
{
.
name
=
" 1 SIGHUP"
,
.
number
=
1
},
{
.
name
=
" 2 SIGINT"
,
.
number
=
2
},
...
...
@@ -69,7 +69,7 @@ SignalItem Platform_signals[] = {
{
.
name
=
"31 SIGUSR2"
,
.
number
=
31
},
};
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
const
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
ProcessFieldData
Process_fields
[]
=
{
[
0
]
=
{
.
name
=
""
,
.
title
=
NULL
,
.
description
=
NULL
,
.
flags
=
0
,
},
...
...
darwin/Platform.h
View file @
6d4df3d1
...
...
@@ -22,9 +22,9 @@ in the source distribution for its full text.
extern
ProcessField
Platform_defaultFields
[];
extern
SignalItem
Platform_signals
[];
extern
const
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
const
unsigned
int
Platform_numberOfSignals
;
extern
ProcessFieldData
Process_fields
[];
...
...
freebsd/Platform.c
View file @
6d4df3d1
...
...
@@ -43,7 +43,7 @@ ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_R
int
Platform_numberOfFields
=
LAST_PROCESSFIELD
;
SignalItem
Platform_signals
[]
=
{
const
SignalItem
Platform_signals
[]
=
{
{
.
name
=
" 0 Cancel"
,
.
number
=
0
},
{
.
name
=
" 1 SIGHUP"
,
.
number
=
1
},
{
.
name
=
" 2 SIGINT"
,
.
number
=
2
},
...
...
@@ -80,7 +80,7 @@ SignalItem Platform_signals[] = {
{
.
name
=
"33 SIGLIBRT"
,
.
number
=
33
},
};
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
const
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
void
Platform_setBindings
(
Htop_Action
*
keys
)
{
(
void
)
keys
;
...
...
freebsd/Platform.h
View file @
6d4df3d1
...
...
@@ -24,9 +24,9 @@ extern ProcessField Platform_defaultFields[];
extern
int
Platform_numberOfFields
;
extern
SignalItem
Platform_signals
[];
extern
const
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
const
unsigned
int
Platform_numberOfSignals
;
void
Platform_setBindings
(
Htop_Action
*
keys
);
...
...
linux/Platform.c
View file @
6d4df3d1
...
...
@@ -47,7 +47,7 @@ ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_R
int
Platform_numberOfFields
=
LAST_PROCESSFIELD
;
SignalItem
Platform_signals
[]
=
{
const
SignalItem
Platform_signals
[]
=
{
{
.
name
=
" 0 Cancel"
,
.
number
=
0
},
{
.
name
=
" 1 SIGHUP"
,
.
number
=
1
},
{
.
name
=
" 2 SIGINT"
,
.
number
=
2
},
...
...
@@ -84,7 +84,7 @@ SignalItem Platform_signals[] = {
{
.
name
=
"31 SIGSYS"
,
.
number
=
31
},
};
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
const
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
static
Htop_Reaction
Platform_actionSetIOPriority
(
State
*
st
)
{
Panel
*
panel
=
st
->
panel
;
...
...
linux/Platform.h
View file @
6d4df3d1
...
...
@@ -23,9 +23,9 @@ extern ProcessField Platform_defaultFields[];
extern
int
Platform_numberOfFields
;
extern
SignalItem
Platform_signals
[];
extern
const
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
const
unsigned
int
Platform_numberOfSignals
;
void
Platform_setBindings
(
Htop_Action
*
keys
);
...
...
openbsd/Platform.c
View file @
6d4df3d1
...
...
@@ -99,7 +99,7 @@ int Platform_numberOfFields = LAST_PROCESSFIELD;
/*
* See /usr/include/sys/signal.h
*/
SignalItem
Platform_signals
[]
=
{
const
SignalItem
Platform_signals
[]
=
{
{
.
name
=
" 0 Cancel"
,
.
number
=
0
},
{
.
name
=
" 1 SIGHUP"
,
.
number
=
1
},
{
.
name
=
" 2 SIGINT"
,
.
number
=
2
},
...
...
@@ -136,7 +136,7 @@ SignalItem Platform_signals[] = {
{
.
name
=
"32 SIGTHR"
,
.
number
=
32
},
};
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
const
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
void
Platform_setBindings
(
Htop_Action
*
keys
)
{
(
void
)
keys
;
...
...
openbsd/Platform.h
View file @
6d4df3d1
...
...
@@ -39,9 +39,9 @@ extern int Platform_numberOfFields;
/*
* See /usr/include/sys/signal.h
*/
extern
SignalItem
Platform_signals
[];
extern
const
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
const
unsigned
int
Platform_numberOfSignals
;
void
Platform_setBindings
(
Htop_Action
*
keys
);
...
...
unsupported/Platform.c
View file @
6d4df3d1
...
...
@@ -23,11 +23,11 @@ in the source distribution for its full text.
#include "UnsupportedProcess.h"
}*/
SignalItem
Platform_signals
[]
=
{
const
SignalItem
Platform_signals
[]
=
{
{
.
name
=
" 0 Cancel"
,
.
number
=
0
},
};
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
const
unsigned
int
Platform_numberOfSignals
=
sizeof
(
Platform_signals
)
/
sizeof
(
SignalItem
);
ProcessField
Platform_defaultFields
[]
=
{
PID
,
USER
,
PRIORITY
,
NICE
,
M_SIZE
,
M_RESIDENT
,
STATE
,
PERCENT_CPU
,
PERCENT_MEM
,
TIME
,
COMM
,
0
};
...
...
unsupported/Platform.h
View file @
6d4df3d1
...
...
@@ -15,9 +15,9 @@ in the source distribution for its full text.
#include "SignalsPanel.h"
#include "UnsupportedProcess.h"
extern
SignalItem
Platform_signals
[];
extern
const
SignalItem
Platform_signals
[];
extern
unsigned
int
Platform_numberOfSignals
;
extern
const
unsigned
int
Platform_numberOfSignals
;
extern
ProcessField
Platform_defaultFields
[];
...
...
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