summaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Make Infoscreens the correct heightDaniel Lange2021-01-111-1/+1
|
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-1/+1
|
* Embracing branchesBenny Baumann2020-11-021-5/+9
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-11/+11
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* OpenFilesScreen updateChristian Göttsche2020-10-101-29/+100
| | | | | | | | | | | | | | | | | | | | | | | - 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).
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Check for fdopen failure in OpenFilesScreen_getProcessDataChristian Göttsche2020-09-171-0/+4
|
* Properly close pipe handles when work is doneBenny Baumann2020-09-171-3/+14
|
* Barely ever seen any 1000 digit PIDs …Benny Baumann2020-09-171-2/+2
|
* Axe automated header generation.Zev Weiss2020-09-031-24/+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.
* Close pipe after lsofJesin2019-06-231-0/+1
|
* Use fork/exec instead of popen to run lsof (#757)wangqr2018-03-161-6/+33
| | | Fixes #675
* Replace size_t with int/void* unionHisham Muhammad2018-02-181-1/+1
| | | | | | | | 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-2/+2
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Interpret TTY_NR column on Linux,Hisham2016-10-011-1/+0
| | | | | translate dev_t to major:minor on other platforms. Closes #316.
* Dynamically adjust the size of line readsHisham Muhammad2016-06-191-12/+10
| | | | | | | * Dynamically adjust the size of line reads. * Remove some more uses of fgets with arbitrary sizes. * Fix reading of lines and width of n column. Fixes #514.
* Check for failure in allocations.Hisham2016-02-021-4/+4
|
* refactor *Screen classes, add InfoScreen superclassHisham Muhammad2016-01-121-111/+22
|
* 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
* incremental search and filter reintegrated!Hisham Muhammad2015-03-231-3/+3
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-8/+7
|
* Let's see if this assert makes static analyzers happier.Hisham Muhammad2014-04-241-0/+1
|
* Fix display of open files.Hisham Muhammad2014-04-221-21/+26
| | | | Cleanup the code to prevent this bug from happening again.
* alignment improvementsHisham Muhammad2014-02-271-1/+1
|
* Fix order of calloc arguments.Hisham Muhammad2014-01-161-2/+2
| | | | (Patch by Dawid Gajownik)
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-2/+3
| | | | UTF-8 display of big numbers.
* search and filter for the strace and lsof screens!Hisham Muhammad2012-11-101-55/+86
|
* major header cleanupHisham Muhammad2011-12-261-5/+9
|
* Use strdup explicitlyHisham Muhammad2011-12-251-1/+0
|
* Mega-commit with features and tweaks for 1.0:Hisham Muhammad2011-11-181-1/+1
| | | | | | | | | | | * Performance improvements * Support for splitting CPU meters into two or four columns (thanks to Wim Heirman) * Switch from PLPA, which is now deprecated, to HWLOC. * Bring back support for native Linux sched_setaffinity, so we don't have to use HWLOC where we don't need to. * Support for typing in user names and column fields in selection panels.
* launch lsof for parent process when called on threads.Hisham Muhammad2011-03-221-3/+8
|
* don't resolve port namesHisham Muhammad2010-09-021-1/+1
|
* add support for steal/guest CPU time measurementHisham Muhammad2010-08-241-4/+4
| | | | | | simplify processor data accounting (add CPUData structure) remove Process_clone trick
* fix memory leakHisham Muhammad2010-03-031-1/+4
|
* warning fixesHisham Muhammad2010-02-251-4/+4
|
* extra checks for lsof failuresHisham Muhammad2009-10-161-8/+10
|
* fix to minor bug affecting the build process, a maintenance release will ↵Hisham Muhammad2009-06-081-0/+1
| | | | follow shortly.
* oops, add missing filesHisham Muhammad2009-06-021-0/+194

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