Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | IWYU update | Christian Göttsche | 2021-08-25 | 1 | -1/+0 |
| | |||||
* | cleaned up includes with iwyu | mayurdahibhate | 2021-05-10 | 1 | -1/+0 |
| | |||||
* | Use ATTR_UNUSED instead of void casting | Christian Göttsche | 2021-03-02 | 1 | -2/+1 |
| | |||||
* | Refactor to remove no-op calls | Benny Baumann | 2021-02-17 | 1 | -2/+0 |
| | | | | This removes the call-sites of the removed setuid feature | ||||
* | TraceScreen: draw panel header | Youngjae Lee | 2021-01-28 | 1 | -1/+1 |
| | |||||
* | Mark several non-modified pointer variables const | Christian Göttsche | 2021-01-11 | 1 | -1/+1 |
| | |||||
* | Merge branch 'misc' of https://github.com/cgzones/htop into cgzones-misc | Christian Göttsche | 2020-12-22 | 1 | -13/+13 |
|\ | |||||
| * | TraceScreen: mark local class functions static | Christian Göttsche | 2020-12-21 | 1 | -13/+13 |
| | | |||||
* | | Rework drawing of FunctionBar | Christian Göttsche | 2020-12-20 | 1 | -5/+1 |
|/ | | | | | | | | | | | Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402 | ||||
* | Mark event arrays const | Christian Göttsche | 2020-12-20 | 1 | -1/+1 |
| | |||||
* | Improving Command display/sort | Narendran Gopalakrishnan | 2020-11-24 | 1 | -1/+1 |
| | |||||
* | Shorten initializer | Benny Baumann | 2020-11-02 | 1 | -3/+1 |
| | |||||
* | Embracing branches | Benny Baumann | 2020-11-02 | 1 | -3/+9 |
| | |||||
* | Spacing around operators | Benny Baumann | 2020-11-02 | 1 | -5/+6 |
| | |||||
* | Spacing after keywords (if) | Benny Baumann | 2020-11-02 | 1 | -2/+2 |
| | |||||
* | Make all required includes explicit | Benny Baumann | 2020-10-18 | 1 | -13/+15 |
| | | | | Information as seen by IWYU 0.12 + clang 9 on Linux | ||||
* | Ensure full initialization of all fields | Benny Baumann | 2020-10-18 | 1 | -3/+2 |
| | |||||
* | Fix various file descriptor leaks | Benny Baumann | 2020-10-18 | 1 | -23/+56 |
| | |||||
* | Rename StringUtils.[ch] to XUtils.[ch] | Benny Baumann | 2020-10-16 | 1 | -1/+1 |
| | |||||
* | Misc conversion fixes | Christian Göttsche | 2020-10-16 | 1 | -3/+3 |
| | |||||
* | Mark Object instances const | Christian Göttsche | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | Update License consistently to GPLv2 as per COPYING file | Daniel Lange | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | Avoid hardcoding of buffer size | Benny Baumann | 2020-09-17 | 1 | -2/+2 |
| | |||||
* | Barely ever seen any 1000 digit PIDs … | Benny Baumann | 2020-09-17 | 1 | -1/+1 |
| | |||||
* | Clean up some code duplication in the header files | Hugo Musso Gualandi | 2020-09-12 | 1 | -1/+0 |
| | | | | | | | | | | | | | PR htop-dev/htop#70 got rid of the infrastructure for generating header files, but it left behind some code duplication. Some of cases are things that belong in the header file and don't need to be repeated in the C file. Other cases are things that belong in the C file and don't need to be in the header file. In this commit I tried to fix all of these that I could find. When given a choice I preferred keeping things out of the header file, unless they were being used by someone else. | ||||
* | Axe automated header generation. | Zev Weiss | 2020-09-03 | 1 | -15/+0 |
| | | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code. | ||||
* | Add timestamps to the strace screen | Mario Harjac | 2019-04-29 | 1 | -1/+1 |
| | |||||
* | strace: increase string length | Hisham Muhammad | 2018-03-25 | 1 | -1/+1 |
| | |||||
* | Replace size_t with int/void* union | Hisham Muhammad | 2018-02-18 | 1 | -1/+2 |
| | | | | | | | | I was occasionally passing negative values to size_t. Plus, this better reflects the intent of the variant argument. Reported by Coverity: https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500 | ||||
* | Security review: check results of snprintf. | Hisham Muhammad | 2017-07-27 | 1 | -3/+3 |
| | | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does. | ||||
* | Merge branch 'master' of https://github.com/hishamhm/htop | Hisham Muhammad | 2017-07-26 | 1 | -2/+2 |
|\ | |||||
| * | Mark some things as const | Richard | 2017-07-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const. | ||||
* | | Security review: make privilege dropping-restoring optional. | Hisham Muhammad | 2017-07-26 | 1 | -1/+1 |
|/ | | | | | | | This is/was necessary only on macOS, because you needed root in order to read the process list. This was never necessary on Linux, and it also raises security concerns, so now it needs to be enabled explicitly at build time. | ||||
* | Add missing include | coypoop | 2017-03-25 | 1 | -0/+1 |
| | | | sys/time.h for struct timeval | ||||
* | Replace all uses of sprintf with snprintf | Tomasz Kramkowski | 2016-12-29 | 1 | -1/+1 |
| | | | | | | | | | | | | In all the cases where sprintf was being used within htop, snprintf could have been used. This patch replaces all uses of sprintf with snprintf which makes sure that if a buffer is too small to hold the resulting string, the string is simply cut short instead of causing a buffer overflow which leads to undefined behaviour. `sizeof(variable)` was used in these cases, as opposed to `sizeof variable` which is my personal preference because `sizeof(variable)` was already used in one way or another in other parts of the code. | ||||
* | Silence warnings about seteuid return value. | Hisham | 2016-05-25 | 1 | -1/+1 |
| | | | | Closes #483. | ||||
* | Check for failure in allocations. | Hisham | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | refactor *Screen classes, add InfoScreen superclass | Hisham Muhammad | 2016-01-12 | 1 | -156/+98 |
| | |||||
* | add some security checks when running SUID root | Michael Klein | 2015-12-02 | 1 | -0/+1 |
| | | | | | | on Darwin, htop needs to run with root privileges to display information about other users processes. This commit makes running htop SUID root a bit more safe. | ||||
* | Clean up some needless malloc casts, convert some mallocs to callocs, and ↵ | Michael McConville | 2015-09-16 | 1 | -1/+1 |
| | | | | fix some style | ||||
* | Rename String to StringUtils. | David Hunt | 2015-08-19 | 1 | -1/+1 |
| | | | | | | | | | Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>. From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001 From: David Hunt <dhunt@iolanthe.attlocal.net> Date: Sat, 11 Jul 2015 20:56:31 -0500 Subject: [PATCH 1/8] Rename String to StringUtils | ||||
* | fix compiler warnings | Christian Hesse | 2015-05-15 | 1 | -1/+2 |
| | | | | | | | | | gcc gives warnings like this: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result Assign value to a variable, cast to (void) to discard it. | ||||
* | incremental search and filter reintegrated! | Hisham Muhammad | 2015-03-23 | 1 | -4/+3 |
| | |||||
* | Move FunctionBar inside Panel | Hisham Muhammad | 2015-03-23 | 1 | -7/+7 |
| | |||||
* | safer code, test for return of fcntl | Hisham Muhammad | 2014-04-22 | 1 | -3/+5 |
| | |||||
* | Changes in object model: separate class objects to store vtable. Also, nicer ↵ | Hisham Muhammad | 2012-12-05 | 1 | -6/+7 |
| | | | | UTF-8 display of big numbers. | ||||
* | search and filter for the strace and lsof screens! | Hisham Muhammad | 2012-11-10 | 1 | -50/+96 |
| | |||||
* | make htop trunk compile on FreeBSD 8.2-STABLE | Hisham Muhammad | 2012-01-03 | 1 | -0/+1 |
| | | | | | (thanks to Trond Endestrol) | ||||
* | major header cleanup | Hisham Muhammad | 2011-12-26 | 1 | -6/+9 |
| | |||||
* | Convert affinity control from the deprecated PLPA to HWLOC | Hisham Muhammad | 2011-09-24 | 1 | -1/+1 |
| |