mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 05:24:36 +03:00
Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e57b5c3f4 | |||
b3aef4ea3a | |||
6900e57efd | |||
5dad65ac2a | |||
6315f10725 | |||
45062b26d6 | |||
ada780c867 | |||
6aed2be247 | |||
9fde0835ed | |||
b92f62f912 | |||
3856bf574b | |||
40ac7a88af | |||
d6adc2b681 | |||
57254cdd05 | |||
0b276f80f1 | |||
bba8c3bb2e |
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@ -1,22 +1,22 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
build-ubuntu-latest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get install libncursesw5-dev
|
||||
- name: Bootstrap
|
||||
run: ./autogen.sh
|
||||
- name: Configure
|
||||
run: ./configure --enable-werror
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt-get install libncursesw5-dev
|
||||
./autogen.sh
|
||||
./configure
|
||||
make
|
||||
run: make
|
||||
- name: Distcheck
|
||||
run: make distcheck
|
||||
|
||||
# build-macos-latest:
|
||||
# runs-on: macos-latest
|
||||
@ -27,3 +27,12 @@ jobs:
|
||||
# ./autogen.sh
|
||||
# ./configure
|
||||
# make
|
||||
|
||||
whitespace_check:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: check-whitespaces
|
||||
run: git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -39,4 +39,5 @@ libtool
|
||||
ltmain.sh
|
||||
m4/
|
||||
missing
|
||||
scripts/MakeHeader.py
|
||||
stamp-h1
|
||||
|
1
Action.c
1
Action.c
@ -615,4 +615,3 @@ void Action_setBindings(Htop_Action* keys) {
|
||||
keys['c'] = actionTagAllChildren;
|
||||
keys['e'] = actionShowEnvScreen;
|
||||
}
|
||||
|
||||
|
1
Action.h
1
Action.h
@ -54,5 +54,4 @@ extern Htop_Reaction Action_follow(State* st);
|
||||
|
||||
extern void Action_setBindings(Htop_Action* keys);
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -1,56 +1,34 @@
|
||||
|
||||
Contributing Guide
|
||||
==================
|
||||
|
||||
Hello, and thank you so much for taking your time to contribute in any way to
|
||||
htop! There are many ways to contribute, and I'll try to list them below. The
|
||||
support from the free software community has been amazing over the years and
|
||||
it is the number one thing that keeps me going, maintaining and improving
|
||||
something that started as a tiny pet project back in 2004 and that nowadays is
|
||||
a piece of software used all over the world, in both reality [and
|
||||
fiction!](http://hisham.hm/htop/index.php?page=sightings). Cheers!
|
||||
|
||||
-- Hisham Muhammad
|
||||
Thank you so much for taking the time to contribute in to htop!
|
||||
|
||||
Bug Reports
|
||||
-----------
|
||||
|
||||
Bug reports should be posted in the [Github issue
|
||||
tracker](http://github.com/hishamhm/htop/issues). (I reply to them all, but I
|
||||
usually do it in batches! :) ) Bug reports are extremely important since it's
|
||||
impossible for me to test htop in every possible system, distribution and
|
||||
scenario. Your feedback is what keeps the tool stable and always improving!
|
||||
Thank you!
|
||||
tracker](https://github.com/htop-dev/htop/issues).
|
||||
Bug reports are extremely important since it's impossible for us to test
|
||||
htop in every possible system, distribution and scenario. Your feedback
|
||||
is what keeps the tool stable and always improving! Thank you!
|
||||
|
||||
Pull Requests
|
||||
-------------
|
||||
|
||||
Code contributions are most welcome! Just [fork the
|
||||
repo](http://github.com/hishamhm/htop) and send a [pull
|
||||
request](https://github.com/hishamhm/htop/pulls). Help is especially
|
||||
repo](https://github.com/htop-dev/htop) and send a [pull
|
||||
request](https://github.com/htop-dev/htop/pulls). Help is especially
|
||||
appreciated for support of platforms other than Linux. If proposing new
|
||||
features, please be mindful that htop is a system tool that needs to keep a
|
||||
small footprint and perform well on systems under stress -- so unfortunately I
|
||||
can't accept every new feature proposed, as I need to keep the tool slim and
|
||||
maintainable. Great ideas backed by a PR are always carefully considered for
|
||||
inclusion, though! Also, PRs containing bug fixes and portability tweaks are a
|
||||
no-brainer, please send those in!
|
||||
small footprint and perform well on systems under stress -- so unfortunately
|
||||
we can't accept every new feature proposed, as we need to keep the tool slim
|
||||
and maintainable. Great ideas backed by a PR are always carefully considered
|
||||
for inclusion though! Also, PRs containing bug fixes and portability tweaks
|
||||
are always included, please send those in!
|
||||
|
||||
Feature Requests
|
||||
----------------
|
||||
|
||||
Back when htop was hosted in SourceForge, there used to be separate Bug
|
||||
Tracker and Feature Request pages. These go all lumped together under "Issues"
|
||||
in Github, which is a bit confusing. For this reason, I close Feature Requests
|
||||
and file them with the [`feature
|
||||
request`](https://github.com/hishamhm/htop/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22feature+request%22+)
|
||||
label, where they remain accessible, but not mixed with actual bug reports.
|
||||
This doesn't mean I'm dismissing or ignoring feature requests right away! It's
|
||||
just an organizational issue (with Github, really!).
|
||||
|
||||
Donations
|
||||
---------
|
||||
|
||||
If you like htop, feel free to [buy the author a
|
||||
beer](http://hisham.hm/htop/index.php?page=donate). :-)
|
||||
|
||||
Please label Github issues that are feature requests with the [`feature
|
||||
request`](https://github.com/htop-dev/htop/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22feature+request%22+)
|
||||
label.
|
||||
|
1
COPYING
1
COPYING
@ -353,4 +353,3 @@ Public License instead of this License.
|
||||
applicable licenses of the version of PLPA used in your combined work,
|
||||
provided that you include the source code of such version of PLPA when
|
||||
and as the GNU GPL requires distribution of source code.
|
||||
|
||||
|
61
ChangeLog
61
ChangeLog
@ -1,3 +1,64 @@
|
||||
What's new in version 3.0.0
|
||||
|
||||
* New maintainers - after a prolonged period of inactivity
|
||||
from Hisham, the creator and original maintainer, a team
|
||||
of community maintainers have volunteered to take over a
|
||||
fork at https://htop.dev and https://github.com/htop-dev
|
||||
to keep the project going.
|
||||
|
||||
* Support ZFS ARC statistics
|
||||
(thanks to Ross Williams)
|
||||
* Support more than 2 smaller CPU meter columns
|
||||
(thanks to Christoph Budziszewski)
|
||||
* Support Linux proportional set size metrics
|
||||
(thanks to @linvinus, @ntninja and @himikof)
|
||||
* Support Linux pressure stall information metrics
|
||||
(thanks to Ran Benita)
|
||||
* New display option to show CPU frequency in CPU meters
|
||||
(thanks to Arnav Singh)
|
||||
* Update Linux sysfs battery discovery for recent kernels
|
||||
(thanks to @smattie)
|
||||
* Add timestamp reporting to the strace screen
|
||||
(thanks to Mario Harjac)
|
||||
* Add simple, optional vim key mapping mode
|
||||
(thanks to Daniel Flanagan)
|
||||
* Added an option to disable the mouse
|
||||
(thanks to MartinJM)
|
||||
* Add Solaris11 compatibility
|
||||
(thanks to Jan Senolt)
|
||||
* Without an argument -u uses $USER value automatically
|
||||
(thanks to @solanav)
|
||||
* Support less(1) search navigation shortcuts
|
||||
(thanks to @syrrim)
|
||||
* Update the FreeBSD maximum PID to match FreeBSD change
|
||||
(thanks to @multiplexd)
|
||||
* Report values larger than 100 terabytes
|
||||
(thanks to @adrien1018)
|
||||
* Widen ST_UID (UID) column to allow for UIDs > 9999
|
||||
(thanks to DLange)
|
||||
* BUGFIX: fix makefiles for building with clang
|
||||
(thanks to Jorge Pereira)
|
||||
* BUGFIX: fix <sys/sysmacros.h> major() usage
|
||||
(thanks to @wataash and Kang-Che Sung)
|
||||
* BUGFIX: fix the STARTTIME column on FreeBSD
|
||||
(thanks to Rob Crowston)
|
||||
* BUGFIX: truncate overwide jail names on FreeBSD
|
||||
(thanks to Rob Crowston)
|
||||
* BUGFIX: fix reported memory values on FreeBSD
|
||||
(thanks to Tobias Kortkamp)
|
||||
* BUGFIX: fix reported CPU meter values on OpenBSD
|
||||
(thanks to @motet-a)
|
||||
* BUGFIX: correctly identify other types of zombie process
|
||||
(thanks to @joder)
|
||||
* BUGFIX: improve follow-process handling in some situations
|
||||
(thanks to @wangqr)
|
||||
* BUGFIX: fix custom meters reverting to unexpected setting
|
||||
(thanks to @wangqr)
|
||||
* BUGFIX: close pipe after running lsof(1)
|
||||
(thanks to Jesin)
|
||||
* BUGFIX: meters honour setting of counting CPUs from 0/1
|
||||
(thanks to @rnsanchez)
|
||||
|
||||
What's new in version 2.2.0
|
||||
|
||||
* Solaris/Illumos/OpenIndiana support
|
||||
|
@ -164,4 +164,3 @@ void ColumnsPanel_update(Panel* super) {
|
||||
}
|
||||
this->settings->fields[size] = 0;
|
||||
}
|
||||
|
||||
|
@ -28,5 +28,4 @@ extern int ColumnsPanel_fieldNameToIndex(const char* name);
|
||||
|
||||
extern void ColumnsPanel_update(Panel* super);
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -85,4 +85,3 @@ long ListItem_compare(const void* cast1, const void* cast2) {
|
||||
ListItem* obj2 = (ListItem*) cast2;
|
||||
return strcmp(obj1->value, obj2->value);
|
||||
}
|
||||
|
||||
|
@ -29,5 +29,4 @@ extern const char* ListItem_getRef(ListItem* this);
|
||||
|
||||
extern long ListItem_compare(const void* cast1, const void* cast2);
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@ applications_DATA = htop.desktop
|
||||
pixmapdir = $(datadir)/pixmaps
|
||||
pixmap_DATA = htop.png
|
||||
|
||||
AM_CFLAGS = -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
|
||||
AM_CFLAGS += -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
|
||||
AM_LDFLAGS =
|
||||
AM_CPPFLAGS = -DNDEBUG
|
||||
|
||||
|
1
NEWS
1
NEWS
@ -2,4 +2,3 @@
|
||||
See the commit history for news of the past.
|
||||
See the bug tracker for news of the future.
|
||||
Run the program for news of the present.
|
||||
|
||||
|
6
XAlloc.c
6
XAlloc.c
@ -14,7 +14,7 @@
|
||||
#include <stdlib.h>
|
||||
}*/
|
||||
|
||||
static inline void fail() {
|
||||
void fail() {
|
||||
curs_set(1);
|
||||
endwin();
|
||||
err(1, NULL);
|
||||
@ -44,6 +44,10 @@ void* xRealloc(void* ptr, size_t size) {
|
||||
return data;
|
||||
}
|
||||
|
||||
#undef xAsprintf
|
||||
|
||||
#define xAsprintf(strp, fmt, ...) do { int _r=asprintf(strp, fmt, __VA_ARGS__); if (_r < 0) { fail(); } } while(0)
|
||||
|
||||
#define xSnprintf(fmt, len, ...) do { int _l=len; int _n=snprintf(fmt, _l, __VA_ARGS__); if (!(_n > -1 && _n < _l)) { curs_set(1); endwin(); err(1, NULL); } } while(0)
|
||||
|
||||
#undef xStrdup
|
||||
|
6
XAlloc.h
6
XAlloc.h
@ -11,12 +11,18 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern void fail(void);
|
||||
|
||||
extern void* xMalloc(size_t size);
|
||||
|
||||
extern void* xCalloc(size_t nmemb, size_t size);
|
||||
|
||||
extern void* xRealloc(void* ptr, size_t size);
|
||||
|
||||
#undef xAsprintf
|
||||
|
||||
#define xAsprintf(strp, fmt, ...) do { int _r=asprintf(strp, fmt, __VA_ARGS__); if (_r < 0) { fail(); } } while(0)
|
||||
|
||||
#define xSnprintf(fmt, len, ...) do { int _l=len; int _n=snprintf(fmt, _l, __VA_ARGS__); if (!(_n > -1 && _n < _l)) { curs_set(1); endwin(); err(1, NULL); } } while(0)
|
||||
|
||||
#undef xStrdup
|
||||
|
@ -295,6 +295,12 @@ then
|
||||
])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [Treat warnings as errors (default: warnings are not errors)])], [enable_werror="$enableval"], [enable_werror=no])
|
||||
AS_IF([test "x$enable_werror" = "xyes"], [AM_CFLAGS="$AM_CFLAGS -Werror"])
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
|
||||
AC_CHECK_PROGS(PYTHON, [python python3 python2])
|
||||
AC_SUBST(PYTHON)
|
||||
|
||||
# Bail out on errors.
|
||||
# ----------------------------------------------------------------------
|
||||
@ -317,7 +323,7 @@ AM_CONDITIONAL([HTOP_DARWIN], [test "$my_htop_platform" = darwin])
|
||||
AM_CONDITIONAL([HTOP_SOLARIS], [test "$my_htop_platform" = solaris])
|
||||
AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported])
|
||||
AC_SUBST(my_htop_platform)
|
||||
AC_CONFIG_FILES([Makefile htop.1])
|
||||
AC_CONFIG_FILES([Makefile htop.1 scripts/MakeHeader.py], [chmod +x scripts/MakeHeader.py])
|
||||
AC_OUTPUT
|
||||
|
||||
if test "$my_htop_platform" = "unsupported"
|
||||
|
@ -72,4 +72,3 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
CFRelease(power_sources);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
(void) sgn;
|
||||
CRT_done();
|
||||
#ifdef __APPLE__
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n");
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at https://htop.dev\n");
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
|
||||
fprintf(stderr, "\n Please include in your report the following backtrace: \n");
|
||||
@ -32,4 +32,3 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ in the source distribution for its full text.
|
||||
void CRT_handleSIGSEGV(int sgn) {
|
||||
(void) sgn;
|
||||
CRT_done();
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n");
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at https://htop.dev\n");
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
|
||||
fprintf(stderr, "\n Please include in your report the following backtrace: \n");
|
||||
@ -32,4 +32,3 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,3 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
fprintf(stderr, "\nPlease contact your platform package maintainer!\n\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -325,17 +325,6 @@ static inline void FreeBSDProcessList_scanMemoryInfo(ProcessList* pl) {
|
||||
cachedMem *= pageSizeKb;
|
||||
pl->cachedMem = cachedMem;
|
||||
|
||||
if (fpl->zfsArcEnabled) {
|
||||
len = sizeof(memZfsArc);
|
||||
sysctl(MIB_kstat_zfs_misc_arcstats_size, 5, &(memZfsArc), &len , NULL, 0);
|
||||
memZfsArc /= 1024;
|
||||
fpl->memZfsArc = memZfsArc;
|
||||
fpl->memWire -= fpl->memZfsArc;
|
||||
pl->cachedMem += fpl->memZfsArc;
|
||||
// maybe when we learn how to make custom memory meter
|
||||
// we could do custom arc breakdown?
|
||||
}
|
||||
|
||||
if (fpl->zfs.enabled) {
|
||||
fpl->memWire -= fpl->zfs.size;
|
||||
pl->cachedMem += fpl->zfs.size;
|
||||
|
@ -38,4 +38,3 @@ typedef int IOPriority;
|
||||
#define IOPriority_Idle IOPriority_tuple(IOPRIO_CLASS_IDLE, 7)
|
||||
|
||||
}*/
|
||||
|
||||
|
@ -39,5 +39,4 @@ typedef int IOPriority;
|
||||
#define IOPriority_Idle IOPriority_tuple(IOPRIO_CLASS_IDLE, 7)
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -41,4 +41,3 @@ Panel* IOPriorityPanel_new(IOPriority currPrio) {
|
||||
IOPriority IOPriorityPanel_getIOPriority(Panel* this) {
|
||||
return (IOPriority) ( ((ListItem*) Panel_getSelected(this))->key );
|
||||
}
|
||||
|
||||
|
@ -17,5 +17,4 @@ extern Panel* IOPriorityPanel_new(IOPriority currPrio);
|
||||
|
||||
extern IOPriority IOPriorityPanel_getIOPriority(Panel* this);
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -17,7 +17,7 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
(void) sgn;
|
||||
CRT_done();
|
||||
#ifdef __linux
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n");
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at https://htop.dev\n");
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
|
||||
fprintf(stderr, "\n Please include in your report the following backtrace: \n");
|
||||
|
@ -514,4 +514,3 @@ long LinuxProcess_compare(const void* v1, const void* v2) {
|
||||
bool Process_isThread(Process* this) {
|
||||
return (Process_isUserlandThread(this) || Process_isKernelThread(this));
|
||||
}
|
||||
|
||||
|
@ -189,5 +189,4 @@ extern long LinuxProcess_compare(const void* v1, const void* v2);
|
||||
|
||||
extern bool Process_isThread(Process* this);
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -822,11 +822,11 @@ static char* LinuxProcessList_updateTtyDevice(TtyDriver* ttyDrivers, unsigned in
|
||||
struct stat sstat;
|
||||
char* fullPath;
|
||||
for(;;) {
|
||||
asprintf(&fullPath, "%s/%d", ttyDrivers[i].path, idx);
|
||||
xAsprintf(&fullPath, "%s/%d", ttyDrivers[i].path, idx);
|
||||
int err = stat(fullPath, &sstat);
|
||||
if (err == 0 && major(sstat.st_rdev) == maj && minor(sstat.st_rdev) == min) return fullPath;
|
||||
free(fullPath);
|
||||
asprintf(&fullPath, "%s%d", ttyDrivers[i].path, idx);
|
||||
xAsprintf(&fullPath, "%s%d", ttyDrivers[i].path, idx);
|
||||
err = stat(fullPath, &sstat);
|
||||
if (err == 0 && major(sstat.st_rdev) == maj && minor(sstat.st_rdev) == min) return fullPath;
|
||||
free(fullPath);
|
||||
@ -837,7 +837,7 @@ static char* LinuxProcessList_updateTtyDevice(TtyDriver* ttyDrivers, unsigned in
|
||||
if (err == 0 && tty_nr == sstat.st_rdev) return strdup(ttyDrivers[i].path);
|
||||
}
|
||||
char* out;
|
||||
asprintf(&out, "/dev/%u:%u", maj, min);
|
||||
xAsprintf(&out, "/dev/%u:%u", maj, min);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
@ -19,4 +19,3 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
fprintf(stderr, "\nPlease contact your platform package maintainer!\n\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -400,4 +400,3 @@ void ProcessList_goThroughEntries(ProcessList* this) {
|
||||
OpenBSDProcessList_scanProcs(opl);
|
||||
OpenBSDProcessList_scanCPUTime(opl);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env @PYTHON@
|
||||
import os, sys, string, io
|
||||
try:
|
||||
from StringIO import StringIO
|
@ -5,4 +5,3 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
*level = -1;
|
||||
*isOnAC = AC_ERROR;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ in the source distribution for its full text.
|
||||
void CRT_handleSIGSEGV(int sgn) {
|
||||
(void) sgn;
|
||||
CRT_done();
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n");
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at https://htop.dev\n");
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
|
||||
fprintf(stderr, "\n Please include in your report the following backtrace: \n");
|
||||
|
@ -419,4 +419,3 @@ void ProcessList_goThroughEntries(ProcessList* this) {
|
||||
this->kernelThreads = 1;
|
||||
proc_walk(&SolarisProcessList_walkproc, this, PR_WALK_LWP);
|
||||
}
|
||||
|
||||
|
@ -685,4 +685,3 @@ describe("htop test suite", function()
|
||||
os.execute("make lcov && xdg-open lcov/index.html")
|
||||
end)
|
||||
end)
|
||||
|
||||
|
@ -5,4 +5,3 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
*level = -1;
|
||||
*isOnAC = AC_ERROR;
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,3 @@ void CRT_handleSIGSEGV(int sgn) {
|
||||
fprintf(stderr, "\nPlease contact your platform package maintainer!\n\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
@ -30,4 +30,3 @@ void UnsupportedProcess_delete(Object* cast) {
|
||||
// free platform-specific fields here
|
||||
free(this);
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ in the source distribution for its full text.
|
||||
|
||||
extern int ZfsArcMeter_attributes[];
|
||||
|
||||
void ZfsArcMeter_readStats(Meter* this, ZfsArcStats* stats);
|
||||
extern void ZfsArcMeter_readStats(Meter* this, ZfsArcStats* stats);
|
||||
|
||||
extern MeterClass ZfsArcMeter_class;
|
||||
|
||||
|
@ -20,3 +20,5 @@ typedef struct ZfsArcStats_ {
|
||||
unsigned long long int uncompressed;
|
||||
} ZfsArcStats;
|
||||
}*/
|
||||
|
||||
static int make_iso_compilers_happy __attribute__((unused));
|
||||
|
@ -23,4 +23,5 @@ typedef struct ZfsArcStats_ {
|
||||
unsigned long long int uncompressed;
|
||||
} ZfsArcStats;
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user