mirror of https://github.com/xzeldon/htop.git
Add Darwin signals (same as FreeBSD)
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/signal.3.html
This commit is contained in:
parent
56193323ce
commit
cc0fc3655d
|
@ -27,6 +27,44 @@ 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 };
|
ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
|
||||||
|
|
||||||
|
SignalItem Platform_signals[] = {
|
||||||
|
{ .name = " 0 Cancel", .number = 0 },
|
||||||
|
{ .name = " 1 SIGHUP", .number = 1 },
|
||||||
|
{ .name = " 2 SIGINT", .number = 2 },
|
||||||
|
{ .name = " 3 SIGQUIT", .number = 3 },
|
||||||
|
{ .name = " 4 SIGILL", .number = 4 },
|
||||||
|
{ .name = " 5 SIGTRAP", .number = 5 },
|
||||||
|
{ .name = " 6 SIGABRT", .number = 6 },
|
||||||
|
{ .name = " 6 SIGIOT", .number = 6 },
|
||||||
|
{ .name = " 7 SIGEMT", .number = 7 },
|
||||||
|
{ .name = " 8 SIGFPE", .number = 8 },
|
||||||
|
{ .name = " 9 SIGKILL", .number = 9 },
|
||||||
|
{ .name = "10 SIGBUS", .number = 10 },
|
||||||
|
{ .name = "11 SIGSEGV", .number = 11 },
|
||||||
|
{ .name = "12 SIGSYS", .number = 12 },
|
||||||
|
{ .name = "13 SIGPIPE", .number = 13 },
|
||||||
|
{ .name = "14 SIGALRM", .number = 14 },
|
||||||
|
{ .name = "15 SIGTERM", .number = 15 },
|
||||||
|
{ .name = "16 SIGURG", .number = 16 },
|
||||||
|
{ .name = "17 SIGSTOP", .number = 17 },
|
||||||
|
{ .name = "18 SIGTSTP", .number = 18 },
|
||||||
|
{ .name = "19 SIGCONT", .number = 19 },
|
||||||
|
{ .name = "20 SIGCHLD", .number = 20 },
|
||||||
|
{ .name = "21 SIGTTIN", .number = 21 },
|
||||||
|
{ .name = "22 SIGTTOU", .number = 22 },
|
||||||
|
{ .name = "23 SIGIO", .number = 23 },
|
||||||
|
{ .name = "24 SIGXCPU", .number = 24 },
|
||||||
|
{ .name = "25 SIGXFSZ", .number = 25 },
|
||||||
|
{ .name = "26 SIGVTALRM", .number = 26 },
|
||||||
|
{ .name = "27 SIGPROF", .number = 27 },
|
||||||
|
{ .name = "28 SIGWINCH", .number = 28 },
|
||||||
|
{ .name = "29 SIGINFO", .number = 29 },
|
||||||
|
{ .name = "30 SIGUSR1", .number = 30 },
|
||||||
|
{ .name = "31 SIGUSR2", .number = 31 },
|
||||||
|
};
|
||||||
|
|
||||||
|
unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem);
|
||||||
|
|
||||||
ProcessFieldData Process_fields[] = {
|
ProcessFieldData Process_fields[] = {
|
||||||
[0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
|
[0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
|
||||||
[PID] = { .name = "PID", .title = " PID ", .description = "Process/thread ID", .flags = 0, },
|
[PID] = { .name = "PID", .title = " PID ", .description = "Process/thread ID", .flags = 0, },
|
||||||
|
|
Loading…
Reference in New Issue