summaryrefslogtreecommitdiffstats
path: root/freebsd
Commit message (Collapse)AuthorAgeFilesLines
* Security review: check results of snprintf.Hisham Muhammad2017-07-272-3/+3
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Issue #502 fix SID colunm header widthKamyar Rasta2017-02-051-1/+1
|
* Issue #502 update Session ID columnKamyar Rasta2017-02-011-2/+2
|
* Interpret TTY_NR column on Linux,Hisham2016-10-011-1/+1
| | | | | translate dev_t to major:minor on other platforms. Closes #316.
* Merge branch 'master' of https://github.com/hishamhm/htopHisham2016-08-302-4/+4
|\
| * Mark signal tables 'const'Explorer092016-08-302-4/+4
| | | | | | | | | | | | | | | | | | Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* | Fix typos, by @Gelma.Hisham2016-08-301-6/+6
|/ | | | Closes #546.
* Merge pull request #496 from tcreech/lwp_hackHisham Muhammad2016-05-191-5/+1
|\ | | | | FreeBSD: fix multithreaded CPU% in process list
| * FreeBSD: use KERN_PROC_PROC with kvm_getprocs to avoid erroneously combining ↵Tim Creech2016-02-281-5/+1
| | | | | | | | LWPs
* | Revert "Fix FreeBSD CPU% calculation"Andy Pilate2016-04-281-5/+5
| | | | | | | | This reverts commit f554f08fa92f8440faa853b5fa4d588829959c8a.
* | Prepare for release 2.0.1.2.0.1Hisham2016-03-071-1/+0
| |
* | Avoid global, as done by @gaod in #387.Hisham Muhammad2016-03-072-7/+1
| |
* | Merge branch 'master' of https://github.com/Sp1l/htop into Sp1l-masterHisham Muhammad2016-03-072-8/+10
|\ \
| * | Fix FreeBSD CPU% calculationBernard Spil2016-02-141-5/+5
| | |
| * | Fix memory percentage display on FreeBSDBernard Spil2016-02-141-3/+5
| | |
* | | Improve error reporting on FreeBSD libkvm callMichael McConville2016-03-051-4/+8
| |/ |/| | | | | | | | | | | This involves switching from kvm_open(3) to kvm_openfiles(3). The only difference is that the latter has saner error reporting (see the man page for details). We can now fatally report the error rather than just calling assert(3).
* | Fix low CPU usage reporting in FreeBSDTim Creech2016-02-261-3/+3
| |
* | Add MEM% for processes in process list on FreeBSD.Hung-Yi Chen2016-02-131-0/+2
|/
* Suppress compiler warnings.Hung-Yi Chen2016-02-132-2/+3
|
* fix process memory on FreeBSDGreg V2016-02-111-2/+2
|
* add FreeBSD battery supportGreg V2016-02-111-4/+14
|
* Merge branch 'xalloc'Hisham2016-02-022-12/+12
|\
| * Check for failure in allocations.Hisham2016-02-022-12/+12
| |
* | Add generated header.Hisham2016-01-311-2/+26
|/
* Introduce CLAMP macro. Unify all MIN(MAX(a,b),c) uses.Explorer092016-01-152-1/+11
| | | | | | | | | | | | | | | | | | | | | | | With the CLAMP macro replacing the combination of MIN and MAX, we will have at least two advantages: 1. It's more obvious semantically. 2. There are no more mixes of confusing uses like MIN(MAX(a,b),c) and MAX(MIN(a,b),c) and MIN(a,MAX(b,c)) appearing everywhere. We unify the 'clamping' with a single macro. Note that the behavior of this CLAMP macro is different from the combination `MAX(low,MIN(x,high))`. * This CLAMP macro expands to two comparisons instead of three from MAX and MIN combination. In theory, this makes the code slightly smaller, in case that (low) or (high) or both are computed at runtime, so that compilers cannot optimize them. (The third comparison will matter if (low)>(high); see below.) * CLAMP has a side effect, that if (low)>(high) it will produce weird results. Unlike MIN & MAX which will force either (low) or (high) to win. No assertion of ((low)<=(high)) is done in this macro, for now. This CLAMP macro is implemented like described in glib <http://developer.gnome.org/glib/stable/glib-Standard-Macros.html> and does not handle weird uses like CLAMP(a++, low++, high--) .
* Merge remote-tracking branch 'upstream/master' into envscreenMichael Klein2016-01-063-34/+331
|\
| * Merge branch 'freebsd-free' of https://github.com/mmcco/htop into ↵Hisham Muhammad2016-01-041-4/+4
| |\ | | | | | | | | | mmcco-freebsd-free
| | * Remove NULL-checks before free()Michael McConville2016-01-031-4/+4
| | | | | | | | | | | | These are never necessary when using the standard library.
| * | Plug leak in FreeBSD backend, as noted by @mmcco in #334.Hisham Muhammad2016-01-041-0/+1
| |/
| * Fix spelling of "maintainer"Michael McConville2016-01-021-1/+1
| |
| * fixed bug with PPID of parent not being set on first process list scan pass.Martin "eto" Misuth2015-12-171-0/+1
| | | | | | | | | | | | this caused htop to show processes as if freebsd kernel was their parent. on next pass reparenting code took chance to run, and that caused process to jump around. this fixed behaviour should be the correct one
| * enabled swap meterMartin "eto" Misuth2015-12-131-1/+3
| |
| * added Support for memory meter, and slightly adjusted process monitor logicMartin "eto" Misuth2015-12-132-29/+135
| |
| * added CPU% for processes in process listMartin "eto" Misuth2015-12-131-1/+17
| |
| * added cpu monitoring for both single core and smp systems, some notes in ↵Martin "eto" Misuth2015-12-132-21/+188
| | | | | | | | process monitor
| * added support for effective UID/username change detectionMartin "eto" Misuth2015-12-111-0/+4
| |
* | Add Platform_getProcessEnvMichael Klein2015-12-031-0/+5
|/ | | | - currently implemented for darwin and linux
* Regenerate platform-dependent headers.Hisham Muhammad2015-10-194-5/+25
| | | | Closes #293.
* Fixed reparenting issue. PPID should be updated each refresh as any process ↵Martin "eto" Misuth2015-10-061-1/+8
| | | | | | | | can get reparented to either PID1 or even any other PID (if there are custom reapers in the system). Similar issue with jails, elevated process can ask kernel to attach itself into any jail at any time, thus JID and jail name can change each refresh cycle.
* attempt to return to upstream/masterMartin "eto" Misuth2015-10-061-12/+8
|
* Added platform dependent DEFAULT_SIGNAL define, for now for:Martin "eto" Misuth2015-10-061-0/+4
| | | | | | FreeBSD Linux Other platforms will have it undefined for now.
* Unless I move signal definitions into the comment used for header generation,Martin "eto" Misuth2015-10-061-8/+8
| | | | | | | | | | | | htop fails to compile with: ```text SignalsPanel.c:32:49: error: use of undeclared identifier 'Platform_signals' Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number)); ^ 1 error generated. *** Error code 1 ```
* Move list of signals to platform-specific code.Hisham Muhammad2015-10-061-0/+40
| | | | | Implementations for Linux (tested) and FreeBSD (still untested, thanks to @etosan for providing the table). Darwin and OpenBSD(ping @mmcco) builds should be broken now, pending their own tables.
* Merge pull request #274 from mmcco/masterHisham Muhammad2015-10-051-1/+1
|\ | | | | Cleanup and initial OpenBSD support
| * Clean up some needless malloc casts, convert some mallocs to callocs, and ↵Michael McConville2015-09-161-1/+1
| | | | | | | | fix some style
* | Added preliminary attempt at jails support on FreeBSD - JID and JAIL (name) ↵Martin "eto" Misuth2015-09-302-21/+111
|/ | | | | | | columns, somewhat more correct kernel "thread" detection. Seems FreeBSD kernel can spawn both kernel processes (what is what htop currently sees) and kernel threads. For now let's consider kernel processes kernel "threads".
* fix calloc() callsChristian Hesse2015-09-071-1/+1
| | | | | | | * size_t nmemb (number of elements) first, then size_t size * do not assume char is size 1 but use sizeof() * allocate for char, not pointer to char (found by Michael McConville, fixes #261)
* Make column width calculation dynamic.Hisham Muhammad2015-08-202-29/+9
| | | | Closes #228.
* Cast FreeBSDProcess_new to Process_NewLance Chen2015-06-071-1/+1
| | | | | `Process_new_fn` had been renamed to `Process_New` in d880def0e9b5dcce07917aa7cc71e49bddf21c16
* Re-run MakeHeader.py on freebsd/FreeBSDProcess.cLance Chen2015-06-071-2/+4
| | | | | Several functions and struct had changed in b291fba02b8d9bb52cd8a23ef5fffbba4f89ff0a

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