summaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
Commit message (Collapse)AuthorAgeFilesLines
* IWYU updateChristian Göttsche2021-08-251-1/+0
|
* cleaned up includes with iwyumayurdahibhate2021-05-101-1/+0
|
* Use ATTR_UNUSED instead of void castingChristian Göttsche2021-03-021-2/+1
|
* Refactor to remove no-op callsBenny Baumann2021-02-171-2/+0
| | | | This removes the call-sites of the removed setuid feature
* TraceScreen: draw panel headerYoungjae Lee2021-01-281-1/+1
|
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-1/+1
|
* Merge branch 'misc' of https://github.com/cgzones/htop into cgzones-miscChristian Göttsche2020-12-221-13/+13
|\
| * TraceScreen: mark local class functions staticChristian Göttsche2020-12-211-13/+13
| |
* | Rework drawing of FunctionBarChristian Göttsche2020-12-201-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 constChristian Göttsche2020-12-201-1/+1
|
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-1/+1
|
* Shorten initializerBenny Baumann2020-11-021-3/+1
|
* Embracing branchesBenny Baumann2020-11-021-3/+9
|
* Spacing around operatorsBenny Baumann2020-11-021-5/+6
|
* Spacing after keywords (if)Benny Baumann2020-11-021-2/+2
|
* Make all required includes explicitBenny Baumann2020-10-181-13/+15
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Ensure full initialization of all fieldsBenny Baumann2020-10-181-3/+2
|
* Fix various file descriptor leaksBenny Baumann2020-10-181-23/+56
|
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Misc conversion fixesChristian Göttsche2020-10-161-3/+3
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Avoid hardcoding of buffer sizeBenny Baumann2020-09-171-2/+2
|
* Barely ever seen any 1000 digit PIDs …Benny Baumann2020-09-171-1/+1
|
* Clean up some code duplication in the header filesHugo Musso Gualandi2020-09-121-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 Weiss2020-09-031-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 screenMario Harjac2019-04-291-1/+1
|
* strace: increase string lengthHisham Muhammad2018-03-251-1/+1
|
* Replace size_t with int/void* unionHisham Muhammad2018-02-181-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 Muhammad2017-07-271-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/htopHisham Muhammad2017-07-261-2/+2
|\
| * Mark some things as constRichard2017-07-221-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 Muhammad2017-07-261-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 includecoypoop2017-03-251-0/+1
| | | sys/time.h for struct timeval
* Replace all uses of sprintf with snprintfTomasz Kramkowski2016-12-291-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.Hisham2016-05-251-1/+1
| | | | Closes #483.
* Check for failure in allocations.Hisham2016-02-021-1/+1
|
* refactor *Screen classes, add InfoScreen superclassHisham Muhammad2016-01-121-156/+98
|
* add some security checks when running SUID rootMichael Klein2015-12-021-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 McConville2015-09-161-1/+1
| | | | fix some style
* Rename String to StringUtils.David Hunt2015-08-191-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 warningsChristian Hesse2015-05-151-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 Muhammad2015-03-231-4/+3
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-7/+7
|
* safer code, test for return of fcntlHisham Muhammad2014-04-221-3/+5
|
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-6/+7
| | | | UTF-8 display of big numbers.
* search and filter for the strace and lsof screens!Hisham Muhammad2012-11-101-50/+96
|
* make htop trunk compile on FreeBSD 8.2-STABLEHisham Muhammad2012-01-031-0/+1
| | | | | (thanks to Trond Endestrol)
* major header cleanupHisham Muhammad2011-12-261-6/+9
|
* Convert affinity control from the deprecated PLPA to HWLOCHisham Muhammad2011-09-241-1/+1
|

© 2014-2024 Faster IT GmbH | imprint | privacy policy