htop - an interactive process viewer
Go to file
Christian Göttsche f8b9ced93f OpenFilesScreen update
- Remove local types and function from header file
- Reduce OpenFiles_Data to neccessary size
- Print file access mode (r/w/u)
- Fix memory leak on consecutive items without an intermediate file item:

    ==15257==ERROR: LeakSanitizer: detected memory leaks

    Direct leak of 120 byte(s) in 12 object(s) allocated from:
        #0 0x48c864 in strdup (htop/htop+0x48c864)
        #1 0x542f68 in xStrdup htop/XAlloc.c:71:17
        #2 0x50e225 in OpenFilesScreen_getProcessData htop/OpenFilesScreen.c:112:25
        #3 0x50cd17 in OpenFilesScreen_scan htop/OpenFilesScreen.c:141:35
        #4 0x4fd3eb in InfoScreen_run htop/InfoScreen.c:81:35
        #5 0x4d58bb in actionLsof htop/Action.c:361:4
        #6 0x501766 in MainPanel_eventHandler htop/MainPanel.c:80:19
        #7 0x5289fa in ScreenManager_run htop/ScreenManager.c:227:19
        #8 0x4f748e in main htop/htop.c:300:4
        #9 0x7ff73e0d8cc9 in __libc_start_main csu/../csu/libc-start.c:308:16

    SUMMARY: AddressSanitizer: 120 byte(s) leaked in 12 allocation(s).
2020-10-10 11:26:43 +02:00
.github/workflows Add clang analyzer CI job 2020-10-03 19:04:27 +02:00
darwin Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
dragonflybsd Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
freebsd Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
linux Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
openbsd Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
scripts Add script to run htop under valgrind 2020-09-17 22:06:36 +02:00
solaris Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
unsupported Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
zfs Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
.editorconfig Add `trim_trailing_whitespace` to editorconfig 2019-10-31 11:39:57 -05:00
.gitignore Axe automated header generation. 2020-09-03 11:58:58 -05:00
.travis.yml Fail travis CI on compiler warnings 2020-09-18 12:28:40 +02:00
AUTHORS Initial import. 2006-03-04 18:16:49 +00:00
Action.c use 'w' for command wrapping as 'M' is already used 2020-10-09 09:03:32 +08:00
Action.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Affinity.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Affinity.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
AffinityPanel.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
AffinityPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
AvailableColumnsPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
AvailableColumnsPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
AvailableMetersPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
AvailableMetersPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
BatteryMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
BatteryMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
CONTRIBUTING.md Updates to project URLs in docs and embedded in source code 2020-08-22 15:47:11 +10:00
COPYING Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
CPUMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
CPUMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
CRT.c Merge branch 'update-license-and-copyright-info' 2020-10-06 10:27:38 +11:00
CRT.h Merge branch 'update-license-and-copyright-info' 2020-10-06 10:27:38 +11:00
CategoriesPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
CategoriesPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
ChangeLog Bump version, changelog for minor htop-3.0.2 release 2020-09-15 09:43:36 +10:00
CheckItem.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
CheckItem.h Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
ClockMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
ClockMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
ColorsPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
ColorsPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
ColumnsPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
ColumnsPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
CommandScreen.c Mark Object instances const 2020-10-07 13:01:53 +02:00
CommandScreen.h Mark Object instances const 2020-10-07 13:01:53 +02:00
DateMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
DateMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
DateTimeMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
DateTimeMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
DiskIOMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
DiskIOMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
DisplayOptionsPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
DisplayOptionsPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
EnvScreen.c Mark Object instances const 2020-10-07 13:01:53 +02:00
EnvScreen.h Mark Object instances const 2020-10-07 13:01:53 +02:00
FunctionBar.c Enable -Wcast-qual compiler warning 2020-10-06 11:20:07 +02:00
FunctionBar.h Enable -Wcast-qual compiler warning 2020-10-06 11:20:07 +02:00
Hashtable.c Fix Hashtable_put to allow storing the same pointer 2020-10-09 12:23:16 +02:00
Hashtable.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Header.c Mark Object instances const 2020-10-07 13:01:53 +02:00
Header.h Mark Object instances const 2020-10-07 13:01:53 +02:00
HostnameMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
HostnameMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
IncSet.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
IncSet.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
InfoScreen.c Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
InfoScreen.h Mark process argument of Process_isThread const 2020-10-09 10:18:40 +02:00
ListItem.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
ListItem.h Mark Object instances const 2020-10-07 13:01:53 +02:00
LoadAverageMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
LoadAverageMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
Macros.h Enclose CLAMP macro arguments in parentheses 2020-10-06 11:46:41 +02:00
MainPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
MainPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
Makefile.am Makefile sort correction 2020-10-09 10:40:54 +02:00
MemoryMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
MemoryMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
Meter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
Meter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
MetersPanel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
MetersPanel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
NEWS Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
Object.c Mark Object classes and Object class fields const 2020-10-07 13:01:53 +02:00
Object.h Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
OpenFilesScreen.c OpenFilesScreen update 2020-10-10 11:26:43 +02:00
OpenFilesScreen.h OpenFilesScreen update 2020-10-10 11:26:43 +02:00
Panel.c Mark Object instances const 2020-10-07 13:01:53 +02:00
Panel.h Mark Object instances const 2020-10-07 13:01:53 +02:00
Process.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
Process.h Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
ProcessList.c Mark Object classes and Object class fields const 2020-10-07 13:01:53 +02:00
ProcessList.h Mark Object classes and Object class fields const 2020-10-07 13:01:53 +02:00
README Update creation date to 2004 (thanks rubyFeedback) 2020-09-17 09:47:28 +02:00
README.md Add README.md for Github 2014-02-03 09:11:39 -02:00
RichString.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
RichString.h Merge branch 'update-license-and-copyright-info' 2020-10-06 10:27:38 +11:00
ScreenManager.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
ScreenManager.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Settings.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Settings.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
SignalsPanel.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
SignalsPanel.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
StringUtils.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
StringUtils.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
SwapMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
SwapMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
TESTPLAN Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
TasksMeter.c Mark Object pointer to _display function const 2020-10-10 11:25:19 +02:00
TasksMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
TraceScreen.c Mark Object instances const 2020-10-07 13:01:53 +02:00
TraceScreen.h Mark Object instances const 2020-10-07 13:01:53 +02:00
UptimeMeter.c Mark Object instances const 2020-10-07 13:01:53 +02:00
UptimeMeter.h Mark Object instances const 2020-10-07 13:01:53 +02:00
UsersTable.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
UsersTable.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Vector.c Mark Object classes and Object class fields const 2020-10-07 13:01:53 +02:00
Vector.h Mark Object classes and Object class fields const 2020-10-07 13:01:53 +02:00
XAlloc.c Cleanse xStrdup mess 2020-09-29 17:41:31 +02:00
XAlloc.h Sort headers/includes 2020-09-29 17:41:49 +02:00
autogen.sh autotools: enable warnings and cleanup 2020-09-17 21:45:11 +02:00
configure.ac Set a -dev version to bug reports show a useful version and not the last release 2020-10-07 10:35:06 +02:00
htop.1.in use 'w' for command wrapping as 'M' is already used 2020-10-09 09:03:32 +08:00
htop.c Option to set initial filter 2020-10-07 10:34:25 +02:00
htop.desktop Add danish translation to htop.desktop 2019-02-19 01:25:52 +01:00
htop.png Updated icon! 2014-04-09 14:47:58 -03:00
test_spec.lua Remove trailing whitespaces 2020-08-21 10:37:33 +02:00

README.md

htop

CI Coverity Scan Build Status Mailing List IRC #htop Github Release Download

Introduction

htop is a cross-platform interactive process viewer.

htop allows scrolling the list of processes vertically and horizontally to see their full command lines and related information like memory and CPU consumption.

The information displayed is configurable through a graphical setup and can be sorted and filtered interactively.

Tasks related to processes (e.g. killing and renicing) can be done without entering their PIDs.

Running htop requires ncurses libraries (typically named libncursesw*).

For more information and details on how to contribute to htop visit htop.dev.

Build instructions

This program is distributed as a standard GNU autotools-based package.

Compiling htop requires the header files for ncurses (libncursesw*-dev). Install these and other required packages for C development from your package manager.

Then, when compiling from a release tarball, run:

./configure && make

Alternatively, for compiling sources downloaded from the Git repository (git clone or downloads from Github releases), install the header files for ncurses (libncursesw*-dev) and other required development packages from your distribution's package manager. Then run:

./autogen.sh && ./configure && make

By default make install will install into /usr/local, for changing the path use ./configure --prefix=/some/path.

See the manual page (man htop) or the on-line help ('F1' or 'h' inside htop) for a list of supported key commands.

Support

If you have trouble running htop please consult your Operating System / Linux distribution documentation for getting support and filing bugs.

Bugs, development feedback

We have a development mailing list. Feel free to subscribe for release announcements or asking questions on the development of htop.

You can also join our IRC channel #htop on freenode and talk to the developers there.

If you have found an issue with the source of htop, please check whether this has already been reported in our Github issue tracker. If not, please file a new issue describing the problem you have found, the location in the source code you are referring to and a possible fix.

History

htop was invented, developed and maintained by Hisham Muhammad from 2004 to 2019. His legacy repository has been archived to preserve the history.

In 2020 a team took over the development amicably and continues to maintain htop collaboratively.

License

GNU General Public License, version 2 (GPL-2.0)