Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Resolve complation issues with -fno-common (default from gcc-10) #1017

Open
wants to merge 508 commits into
base: master
Choose a base branch
from
Open

Resolve complation issues with -fno-common (default from gcc-10) #1017

wants to merge 508 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Sep 18, 2020

  1. Change option '-m' to '-M' for consistency of cli

    `-m` was added as short option for `--no-mouse`, this is inconsistence
    to the rest of the cli since otherwise the short options to disable a
    feature are capital letters. Therefore this commit renames the option to
    `-M`.
    
    This commit also documents the option in the man page.
    Nudin authored and cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    1061bd7 View commit details
    Browse the repository at this point in the history
  2. Drop unused variable

    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    f3b4e24 View commit details
    Browse the repository at this point in the history
  3. Convert short version option to capital V

    v is generally used for enabling verbose mode
    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    f6b0efd View commit details
    Browse the repository at this point in the history
  4. Sort option in help message

    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    dd6500c View commit details
    Browse the repository at this point in the history
  5. Add some default compiler warnings

    Compatible with gcc and clang.
    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    f4602f7 View commit details
    Browse the repository at this point in the history
  6. Refactor __attribute__ usage

    Use internal macros for compatibility with non GNUC compilers.
    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    7107d1d View commit details
    Browse the repository at this point in the history
  7. Use strict function prototypes

    int foo(); declares a function taking any number of arguments.
    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    c3952e7 View commit details
    Browse the repository at this point in the history
  8. Avoid checking of undefined macros

    These feature macros are either define or not defined at all at the
    configure step.
    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    b85a314 View commit details
    Browse the repository at this point in the history
  9. Mark noreturn functions

    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    e719a85 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    475f729 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    efb971f View commit details
    Browse the repository at this point in the history
  12. Add format attribute

    cgzones committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    5ea13e7 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. htop crashes on Solaris 11.4 due to missing ZFS ARC kstats

    senjan authored and cgzones committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    5432862 View commit details
    Browse the repository at this point in the history
  2. htop shows no used memory in Solaris zone

    senjan authored and cgzones committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    2c933f2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eb260af View commit details
    Browse the repository at this point in the history
  4. Fix minor regression in number highlighting

    Fixes #163
    BenBE authored and cgzones committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    e0e5997 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Configuration menu
    Copy the full SHA
    f9966b5 View commit details
    Browse the repository at this point in the history
  2. Avoid arithmetic on booleans

    cgzones committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    6b11738 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Drop dead code after break

    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    2565dd3 View commit details
    Browse the repository at this point in the history
  2. Document field M_SWAP in man page

    Nudin authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    7844e06 View commit details
    Browse the repository at this point in the history
  3. Document M_PSS and M_PSSWP in man page

    Nudin authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    8325774 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1b5201 View commit details
    Browse the repository at this point in the history
  5. Drop dead process fields

    They are nowhere used.
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    d2b3a7a View commit details
    Browse the repository at this point in the history
  6. align cpu id to right

    eworm-de authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    f805093 View commit details
    Browse the repository at this point in the history
  7. Update battery API to use NAN on error

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    47e2cef View commit details
    Browse the repository at this point in the history
  8. Update IO rate display to use NAN on error

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    29ec115 View commit details
    Browse the repository at this point in the history
  9. Properly query sysconf settting and use NAN if unavailable

    This also fixes an issue with time returned negative if sysconf(_SC_CLK_TCK) returned an error.
    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    d0d3deb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ebcf924 View commit details
    Browse the repository at this point in the history
  11. Update CPU freq display to use NAN on error

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    3c65d78 View commit details
    Browse the repository at this point in the history
  12. Update delay accounting to use NAN on error

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    321960b View commit details
    Browse the repository at this point in the history
  13. Add -Wfloat-equal to default build flags

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    ba0fca1 View commit details
    Browse the repository at this point in the history
  14. Use return value of CLAMP function

    BenBE authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    7ecea3d View commit details
    Browse the repository at this point in the history
  15. Avoid unsigned integer overflow

    unsigned integer overflows are well-defined, but they might point to a counting issue.
    Having the code free of unsigned overflows makes it easier to spot potential bugs.
    
      Action.c:332:27: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uid_t' (aka 'unsigned int') changed the value to 4294967295 (32-bit, unsigned)
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Action.c:332:27 in
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    5233817 View commit details
    Browse the repository at this point in the history
  16. show selected command wrapped in a separate window

    For a process with a very long command, especially with many long
    command line arguments, inspecting the command and its arguments could
    become inconvenient.
    
    Meanwhile htop supports the concept of "screen", or window, which is
    extended here to create a dedicated "CommandScreen", making it possible
    to display the command of the selected process in a separate window
    meanwhile being wrapped into multiple lines.
    
    Another benefit of using a command screen is, the user can navigate
    through the wrapped lines of the command and perform actions like
    searching and filtering.
    ryenus authored and cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    f4bb502 View commit details
    Browse the repository at this point in the history
  17. Make --enable-hwloc and --enable-linux-affinity mutual exclusive

    They can not be supported both at the same time.
    Fail configure step instead of silently only use hwloc.
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    005c4d1 View commit details
    Browse the repository at this point in the history
  18. Add DeepCode inline suppression

    commsize is bounded by the allocated length passed in by commLen, saved
    into commLenIn
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    594409f View commit details
    Browse the repository at this point in the history
  19. Add DeepCode inline suppression

    We just want a non-NUll pointer in the matching pid hashtable.
    The pointer is not dereferenced anyways.
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    f4e1f46 View commit details
    Browse the repository at this point in the history
  20. Read CPU frequency from sysfs by default

    Use the more portable sysfs node /sys/devices/system/cpu/cpuX/cpufreq/scaling_cur_freq
    to get the CPU frequency.
    In case of an error fall back to /proc/cpuinfo .
    
    Also use a fixed width of 4 for the frequency to avoid position jumps
    in case the frequency moves in the range 900-1100 MHz.
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    edf1b10 View commit details
    Browse the repository at this point in the history
  21. Drop unused macros

    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    ce0fd5f View commit details
    Browse the repository at this point in the history
  22. Include prototype in Battery implementation

    linux/Battery.c:291:6: warning: no previous prototype for function 'Battery_getData' [-Wmissing-prototypes]
    void Battery_getData(double* level, ACPresence* isOnAC) {
         ^
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    4296e74 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    4a1f3fc View commit details
    Browse the repository at this point in the history
  24. Avoid bad function cast warning

    linux/Platform.c:142:17: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast]
       return (int) floor(uptime);
                    ^~~~~~~~~~~~~
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    cd1ba14 View commit details
    Browse the repository at this point in the history
  25. Avoid warning about unreachable break statement

    htop.c:112:13: warning: 'break' will never be executed [-Wunreachable-code-break]
                break;
                ^~~~~
    htop.c:109:13: warning: 'break' will never be executed [-Wunreachable-code-break]
                break;
                ^~~~~
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    6a03cd2 View commit details
    Browse the repository at this point in the history
  26. Do not drop qualifier in cast

    ListItem.c:73:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual]
       ListItem* obj1 = (ListItem*) cast1;
                                    ^
    ListItem.c:74:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual]
       ListItem* obj2 = (ListItem*) cast2;
                                    ^
    
    Process.c:434:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
       Process* p1 = (Process*)v1;
                               ^
    Process.c:435:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
       Process* p2 = (Process*)v2;
                               ^
    Process.c:441:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
       Settings *settings = ((Process*)v1)->settings;
                                       ^
    Process.c:443:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
          p1 = (Process*)v1;
                         ^
    Process.c:444:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
          p2 = (Process*)v2;
                         ^
    Process.c:446:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
          p2 = (Process*)v1;
                         ^
    Process.c:447:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
          p1 = (Process*)v2;
                         ^
    
    AffinityPanel.c:37:16: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual]
       free((void*)this->text);
                   ^
    AffinityPanel.c:39:19: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual]
          free((void*)this->indent);
                      ^
    
    linux/LinuxProcess.c:294:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual]
       Settings *settings = ((Process*)v1)->settings;
                                       ^
    linux/LinuxProcess.c:296:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual]
          p1 = (LinuxProcess*)v1;
                              ^
    linux/LinuxProcess.c:297:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual]
          p2 = (LinuxProcess*)v2;
                              ^
    linux/LinuxProcess.c:299:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual]
          p2 = (LinuxProcess*)v1;
                              ^
    linux/LinuxProcess.c:300:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual]
          p1 = (LinuxProcess*)v2;
                              ^
    
    linux/LinuxProcessList.c:62:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual]
       TtyDriver* a = (TtyDriver*) va;
                                   ^
    linux/LinuxProcessList.c:63:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual]
       TtyDriver* b = (TtyDriver*) vb;
                                   ^
    
    linux/Battery.c:130:21: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
          free((char *) isOnline);
                        ^
    linux/Battery.c:197:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
          xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName);
                             ^
    linux/Battery.c:209:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
             xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName);
                                ^
    linux/Battery.c:262:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual]
             xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/online", entryName);
                                ^
    cgzones committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    18b1e9f View commit details
    Browse the repository at this point in the history
  27. Linux: consider the ZFS ARC to be cache.

    This commit is based on a patch originally by @edef1c. The ZFS ARC is a cache
    (it's in the name), which will be evicted by the kernel if memory pressure so
    requires. Hence, the ARC should not be counted towards a system's total used
    memory, and should instead be grouped with the other caches in the system.
    
    Signed-off-by: edef <[email protected]>
    multiplexd committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    dfa40ad View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. Configuration menu
    Copy the full SHA
    4e282eb View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2020

  1. Merge branch 'arc-is-not-cache' of https://github.com/multiplexd/htop

    …into multiplexd-arc-is-not-cache
    natoscott committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    400178a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #181 from cgzones/missing_prototypes

    Add -Wmissing-prototypes compiler warning
    natoscott authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    8c9bd20 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #116 from cgzones/valgrind

    Add Valgrind script
    natoscott authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    6191336 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #107 from cgzones/hwlock_linuxaffinity

    Make --enable-hwloc and --enable-linux-affinity mutual exclusive
    natoscott authored Sep 28, 2020
    Configuration menu
    Copy the full SHA
    e75077a View commit details
    Browse the repository at this point in the history
  5. CPUMeter: refactor common CPU meter rendering code.

    Instead of scanning the meter name to determine the number of columns in a
    CPU meter, move the common code behind some wrapper functions, and specify the
    number of columns as an explicit parameter when called from the wrappers.
    
    While this does add a bit of code for all the necessary wrapper functions, this
    should be less brittle in case of future changes to the CPU meter code.
    multiplexd authored and cgzones committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    d22f657 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    491bf98 View commit details
    Browse the repository at this point in the history
  7. CPUMeter: add octuple-column CPU meters.

    This is a straightforward extension of the existing multi-column CPU meter
    code, which now allows for up CPU meters to be displayed in up to 16 columns.
    
    This also adds the meter declarations to all the platform-specific code.
    multiplexd authored and cgzones committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    9ee7256 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2020

  1. Configuration menu
    Copy the full SHA
    214c742 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8439491 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6db2d52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ae967a View commit details
    Browse the repository at this point in the history
  5. Drop redundant declarations

    - `CRT_fatalError()` is declared twice in CRT.h
    - `Process_pidFormat`, `Process_writeField()` and `Process_compare` are
      declared twice in Process.h
    - `btime` is defined in LinuxProcess.c and also declared in
      LinuxProcess.h, so drop in LinuxProcessList.h
    cgzones committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    241e4b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8b55113 View commit details
    Browse the repository at this point in the history
  7. Cleanse xStrdup mess

    BenBE committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    736c496 View commit details
    Browse the repository at this point in the history
  8. Fix FreeBSD compile issue

    This issue was previously hidden as xSnprintf expanded to only one large command that didn't trigger the GCC formatting check.
    BenBE committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    dac1e05 View commit details
    Browse the repository at this point in the history
  9. Sort headers/includes

    BenBE committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    e1c9687 View commit details
    Browse the repository at this point in the history
  10. Process.{h,c}: Use integer types that are more portable

    When building on a 32-bit system, the compiler warned that the
    following line uses a constant whose value is the overflow result
    of a compile-time computation:
    
      Process.c (line 109):   } else if (number < 10000 * ONE_M) {
    
    Namely, this constant expression:
    
      10000 * ONE_M
    
    was intended to produce the following value:
    
      10485760000
    
    However, the result overflowed to produce:
    
       1895825408
    
    The reason for this overflow is as follows:
    
      o The macros are expanded:
    
          10000 * (ONE_K * ONE_K)
          10000 * (1024L * 1024L)
    
      o The untyped constant expression "10000" is typed:
    
          10000U * (1024L * 1024L)
    
      o The parenthesized expression is evaluated:
    
          10000U * (1048576L)
    
      o The left operand ("10000U") is converted:
    
          10000L * (1048576L)
    
        Unbound by integer sizes, that last multiplication
        would produce the following value:
    
          10485760000
    
        However, on a 32-bit machine, where a long is 32 bits
        (really 31 bits when talking about positive numbers),
        the maximum value that can be computed is 2**31-1:
    
          2147483647
    
        Consequently, the computation overflows.
    
      o The compiler produces a long int value that is the
        the result of overflow (10485760000 % 2**31):
    
          1895825408L
    
        Actually, I think this overflow is implementation-defined,
        so it's not even a portable description of what happens.
    
    The solution is to use a long long int (or, even better,
    an unsigned long long int) type for the constant expression;
    the C standard mandates a sufficiently large maximum value
    for such types.
    
    Hence, the following change is made to the bad line:
    
      -   } else if (number < 10000 * ONE_M) {
      +   } else if (number < 10000ULL * ONE_M) {
    
    However, the whole line is now patently silly, because the
    variable "number" is typed "unsigned long", and so it will
    always be less than the constant expression (the compiler
    will warn about this, too).
    
    Hence, "number" must be typed "unsigned long long"; however,
    this necessitates changing all of the string formats from
    something like "%lu" to something like "%llu".
    
    Et voila! This commit is born.
    
    Then, for the sake of completeness, the declared types of the
    constant-expression macros are updated:
    
      o ONE_K is made unsigned (a "UL" instead of "L")
      o ONE_T is computed by introducing "1ULL *"
      o Similar changes are made for ONE_DECIMAL_{K,T}
    
    Also, a non-portable overflow-conversion to a signed value
    has been replaced with a portable comparison:
    
      -   if ((long long) number == -1LL) {
      +   if (number == ULLONG_MAX) {
    
    It might be worth reviewing the rest of the code for other
    cases where overflows are not handled correctly; even at
    runtime, it's often necessary to check for overflow unless
    such behavior is expected (especially for signed integer
    values, for which overflow has implementation-defined
    behavior).
    mfwitten committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    ab3171d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2cde4a7 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. Add screen shot of htop to readme

    Added a basic screenshot of htop in action to the readme so that
    visitors to the page can quickly get a rough idea about what htop does.
    nzbart committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    816734e View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2020

  1. minor typo in Vector.c

    Ckath authored and cgzones committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    3afa5df View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8efc885 View commit details
    Browse the repository at this point in the history
  3. Adjust colors

    - do not reverse CPU steal and guest in monochrome
    - black on black in Light Terminal is not visible, use blue on black
    - white on blue in Light Terminal is display as blue on black, use
      yellow on black
    - re-draw FunctionBar after color change
    cgzones committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    4b14ab9 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2020

  1. Configuration menu
    Copy the full SHA
    6f38700 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e518459 View commit details
    Browse the repository at this point in the history
  3. Add --enable-debug configure option to enable asserts

    asserts are still disabled by default.
    cgzones committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    b7f6329 View commit details
    Browse the repository at this point in the history
  4. Resolve DEBUG compilation issues

    Use NDEBUG conditional instead of DEBUG.
    
    Do not call static functions in extern inline ones.
        Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
    cgzones committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    d69585b View commit details
    Browse the repository at this point in the history
  5. Add clang analyzer CI job

    cgzones committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    b82a13c View commit details
    Browse the repository at this point in the history
  6. Introduce ARRAYSIZE

    cgzones committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    42946ec View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Configuration menu
    Copy the full SHA
    576b82f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #205 from cgzones/arraysize

    Introduce ARRAYSIZE
    natoscott authored Oct 5, 2020
    Configuration menu
    Copy the full SHA
    c953257 View commit details
    Browse the repository at this point in the history
  3. Merge branch '0000/int-sizes/00' of https://github.com/mfwitten/htop

    …into mfwitten-0000/int-sizes/00
    natoscott committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    72613a3 View commit details
    Browse the repository at this point in the history
  4. Update copyright statement

    Daniel Lange authored and Daniel Lange committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    90d16b6 View commit details
    Browse the repository at this point in the history
  5. Update License consistently to GPLv2 as per COPYING file

    Daniel Lange authored and Daniel Lange committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    079c2ab View commit details
    Browse the repository at this point in the history
  6. limit max screen title length to window width

    Applies screen title truncating to all InfoScreen classes.
    ryenus authored and cgzones committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    ff455b0 View commit details
    Browse the repository at this point in the history
  7. Add Copyright statement to --help (needed as it has the license info)

    Daniel Lange authored and Daniel Lange committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    7758774 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    49bb1b5 View commit details
    Browse the repository at this point in the history
  9. Merge identical declarations

    cgzones committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    cdd3913 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    577984d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ffd90c2 View commit details
    Browse the repository at this point in the history
  12. Add a date and datetime meter (#159)

    Add a date meter and sort header and source files in Makefile
    
    Change the lists of header and source files sorted alphabetical and one
    file per line. This way diffs become better readable and merges easier.
    Nudin authored Oct 5, 2020
    Configuration menu
    Copy the full SHA
    d93cac1 View commit details
    Browse the repository at this point in the history
  13. DateMeter followup

    cgzones committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    dc6523b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e9fa290 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Handle Panel_getSelected() returning NULL

    Found by compiling with LTO:
    
        ColumnsPanel.c: In function ‘ColumnsPanel_eventHandler’:
        ColumnsPanel.c:46:59: error: potential null pointer dereference [-Werror=null-dereference]
           46 |             ((ListItem*)Panel_getSelected(super))->moving = this->moving;
              |                                                           ^
        AvailableColumnsPanel.c: In function ‘AvailableColumnsPanel_eventHandler’:
        AvailableColumnsPanel.c:31:8: error: potential null pointer dereference [-Werror=null-dereference]
           31 |    int key = ((ListItem*) Panel_getSelected(super))->key;
              |        ^
        AvailableMetersPanel.c: In function ‘AvailableMetersPanel_eventHandler’:
        AvailableMetersPanel.c:40:24: error: potential null pointer dereference [-Werror=null-dereference]
           40 |    int param = selected->key & 0xff;
              |                        ^
        linux/IOPriorityPanel.c: In function ‘IOPriorityPanel_getIOPriority’:
        linux/IOPriorityPanel.c:37:11: error: potential null pointer dereference [-Werror=null-dereference]
           37 |    return (IOPriority) ( ((ListItem*) Panel_getSelected(this))->key );
              |           ^
    cgzones committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    ad3acfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db47207 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db159e7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3653ee3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    954d6c1 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2020

  1. Option to set initial filter

    Closes #219
    layderv authored and Daniel Lange committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    fbf6424 View commit details
    Browse the repository at this point in the history
  2. Set a -dev version to bug reports show a useful version and not the l…

    …ast release
    Daniel Lange authored and Daniel Lange committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    769df60 View commit details
    Browse the repository at this point in the history
  3. Use memmove for Vector_take

    Doing a quick check with callgrind this gives
    an average reduction from 1804 cycles/call
    down to 491 cycles/call on my test system.
    
    The average was taken over about 40k calls.
    BenBE authored and cgzones committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    1704c29 View commit details
    Browse the repository at this point in the history
  4. Replace copy loop by memmove in Vector_insert

    This is basically the same change like in Vector_take,
    just in the opposite direction.
    BenBE authored and cgzones committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    1640513 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    08d85e6 View commit details
    Browse the repository at this point in the history
  6. Mark Object instances const

    cgzones committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    ba282cf View commit details
    Browse the repository at this point in the history
  7. Handle parsing envID & VPid from process status file

    Fixes #55
    Fixes #192
    BenBE authored and cgzones committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    2970cae View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2020

  1. Some more locations for ARRAYSIZE

    BenBE authored and cgzones committed Oct 8, 2020
    Configuration menu
    Copy the full SHA
    4a78f4b View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2020

  1. use 'w' for command wrapping as 'M' is already used

    since 'M' is already used for sort-by-memory, as with:
    
        keys['M'] = actionSortByMemory;
    
    reorder help info about shortcut keys
    ryenus committed Oct 9, 2020
    Configuration menu
    Copy the full SHA
    32a2caa View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/ryenus/htop

    Closes  #223
    Daniel Lange authored and Daniel Lange committed Oct 9, 2020
    Configuration menu
    Copy the full SHA
    7fa0f19 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41eea8a View commit details
    Browse the repository at this point in the history
  4. Makefile sort correction

    cgzones committed Oct 9, 2020
    Configuration menu
    Copy the full SHA
    f4439b1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e5fdb80 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2020

  1. Configuration menu
    Copy the full SHA
    79ad39c View commit details
    Browse the repository at this point in the history
  2. 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).
    cgzones committed Oct 10, 2020
    Configuration menu
    Copy the full SHA
    f8b9ced View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2020

  1. Configuration menu
    Copy the full SHA
    55eafd3 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2020

  1. Configuration menu
    Copy the full SHA
    fc301b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b47bc66 View commit details
    Browse the repository at this point in the history
  3. Centralise fault handling

    This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
    BenBE authored and cgzones committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    6014800 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    25022c2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0b9a001 View commit details
    Browse the repository at this point in the history
  6. CPUMeter: avoid crashes and leaks in case the CPU count changes

    E.g. if the HT/SMT mode changes
    
    Use separate data for sub-meters
    Do not reuse drawData for maintainability
    cgzones committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    9f5b50e View commit details
    Browse the repository at this point in the history
  7. Settings: do not save initial cpu count

    Not needed and confusing with ProcessList.cpuCount
    cgzones committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    5cc20e7 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

  1. Mark remaining classes const

    cgzones committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    7af0665 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59edb2e View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2020

  1. Misc CRT cleanup

    cgzones committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    1df7fa3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    898a690 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. Keep building on errors

    Doing so allows for more than one error to be detected in builds
    BenBE authored and cgzones committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    2f9381d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bfa7d1f View commit details
    Browse the repository at this point in the history
  3. Keep building on errors

    Doing so allows for more than one error to be detected in builds
    cgzones committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    3c08fa3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    846fe8a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2020

  1. Configuration menu
    Copy the full SHA
    1d00893 View commit details
    Browse the repository at this point in the history
  2. Misc conversion fixes

    cgzones committed Oct 16, 2020
    Configuration menu
    Copy the full SHA
    af4f58d View commit details
    Browse the repository at this point in the history
  3. Add SELinuxMeter

    cgzones committed Oct 16, 2020
    Configuration menu
    Copy the full SHA
    d744dac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    783be77 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a63cfc8 View commit details
    Browse the repository at this point in the history
  6. Misc Vector updates

    - Move swap() macro to source file and implement as function
    - Implement Vector_get() and Vector_size() as inline functions
      to make them type safe and avoid lhs usage
    - Comment comparison statistics, they are only needed for performance
      testing
    cgzones committed Oct 16, 2020
    Configuration menu
    Copy the full SHA
    e9246ab View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a802961 View commit details
    Browse the repository at this point in the history
  8. Add NetworkIOMeter

    cgzones committed Oct 16, 2020
    Configuration menu
    Copy the full SHA
    7cd093c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c6f04a9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    872e542 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2020

  1. Configuration menu
    Copy the full SHA
    5e4b182 View commit details
    Browse the repository at this point in the history
  2. Release old memory on error

    Avoids leaking memory upon realloc failure.
    BenBE committed Oct 17, 2020
    Configuration menu
    Copy the full SHA
    c138d14 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2020

  1. Fix misaligned access inside taskstats structure

    Reported by UB sanitizer (alongside several other messages):
    linux/LinuxProcessList.c:782:25: runtime error: member access within misaligned address 0x614000000264 for type 'struct taskstats', which requires 8 byte alignment
    0x614000000264: note: pointer points here
      64 01 03 00 0a 00 00 00  00 00 00 00 02 00 00 00  00 00 00 00 4b c8 2e 00  00 00 00 00 3e 45 3c fd
                  ^
    
    The issue doesn't cause trouble on x86, but any architecture with stricter memory alignment requirements may inadvertedly break.
    BenBE committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    8154325 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4dfedd3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e5bc03 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'strace-leaks' of BenBE/htop

    Closes #262
    Daniel Lange authored and Daniel Lange committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    8534dcb View commit details
    Browse the repository at this point in the history
  5. Merge branch 'misaligned-struct-access' of BenBE/htop

    Closes #263
    Daniel Lange authored and Daniel Lange committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    8c93f31 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    29346d0 View commit details
    Browse the repository at this point in the history
  7. Make all required includes explicit

    Information as seen by IWYU 0.12 + clang 9 on Linux
    BenBE committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    0f52629 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. Allow low and high value of CLAMP to be equal

    Can for example occur in RichString_setAttrn(), when pausing and
    resuming process tracing:
    
        htop: RichString.c:56: void RichString_setAttrn(RichString *, int, int, int): Assertion `(0) < (this->chlen - 1)' failed.
    
        ./htop(backtrace+0x5b)[0x45d9eb]
        ./htop(CRT_handleSIGSEGV+0x189)[0x4ebab9]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7fd249d35140]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7fd249b6ac41]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7fd249b54537]
        /lib/x86_64-linux-gnu/libc.so.6(+0x2540f)[0x7fd249b5440f]
        /lib/x86_64-linux-gnu/libc.so.6(+0x345c2)[0x7fd249b635c2]
        ./htop(RichString_setAttrn+0x234)[0x526de4]
        ./htop(RichString_setAttr+0x50)[0x5275c0]
        ./htop(Panel_draw+0x17b6)[0x514c26]
        ./htop(InfoScreen_run+0x305)[0x4fe7a5]
        ./htop[0x4d59d8]
        ./htop[0x5029cf]
        ./htop(ScreenManager_run+0x69f)[0x52a82f]
        ./htop(main+0x704)[0x4f8774]
        /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7fd249b55cca]
        ./htop(_start+0x2a)[0x4268ea]
    cgzones committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    0db398d View commit details
    Browse the repository at this point in the history
  2. Cache PAGE_SIZE

    man:sysconf(3) states:
        The values obtained from these functions are system configuration constants.
        They do not change during the lifetime of a process.
    cgzones committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    3618774 View commit details
    Browse the repository at this point in the history
  3. Continue to update generic data in paused mode

    Generic data, as CPU and memory usage, are used by Meters.
    In paused mode they would stop receiving updates and especially Graph
    Meters would stop showing continuous data.
    
    Improves: #214
    Closes: #253
    cgzones committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    96e2a42 View commit details
    Browse the repository at this point in the history
  4. Assert allocating non-zero size memory

    Allocating zero size memory results in implementation-defined behavior:
    
      man:malloc(3) :
        If size is 0, then malloc() returns either NULL, or a unique pointer
        value that can later be successfully passed to free().
    cgzones committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    577416d View commit details
    Browse the repository at this point in the history
  5. XUtils string related updates

    - allow count out-parameter of String_split() to be NULL
    - introduce xStrndup()
    - do not allow NULL pointers passed to String_eq()
      it is not used in any code
    - implement String_startsWith(), String_contains_i() and String_eq()
      as inline header functions
    - adjust several conversion issues
    cgzones committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    4c66eb6 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Merge branch 'cache_pagesize' of cgzones/htop

    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    2d57d28 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'help_lines' of https://github.com/cgzones/htop

    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    475fd1e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'number-cpus-from-zero' of zevweiss/htop

    * This changes the default to count CPUs from zero (instead of starting at one)
    * Settings logic is inverted, backwards compatibility is preserved
    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    a0fb6e3 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'header_pause' of cgzones/htop

    Continue to update generic data in paused mode
    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    9f1a9ab View commit details
    Browse the repository at this point in the history
  5. Merge branch 'Xalloc_Cleanup' of cgzones/htop

    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    0ea18a6 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'screenshot' of nzbart/htop

    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    0c54309 View commit details
    Browse the repository at this point in the history
  7. s390x support for travis

    srajmane authored and cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    dea19b6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f8208f2 View commit details
    Browse the repository at this point in the history
  9. update Github CI

    - Add a full featured clang job
    - Explicit disable options otherwise enabled by default in minimal job
    cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    803234a View commit details
    Browse the repository at this point in the history
  10. IWYU update

    - Add Settings forward declaration in Process.h
    - Add assert.h include in XUitls.c
    - Add conditional stdbool.h include in Object.h
    - Drop unneeded stddef.h include in Richstring.c
    - Drop unneeded unistd.h include in Process.h
    - Drop unneeded string.h include in linux/Platform.c
    - Use String_eq to avoid string.h include in Action.c
    - Improve script to run custom iwyu version
    cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    8a08a32 View commit details
    Browse the repository at this point in the history
  11. Increase print buffer in NetworkIOMeter_display

    In case the packet values wrap-around or have other weird values, the
    current buffer might be to small
    cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    45a2208 View commit details
    Browse the repository at this point in the history
  12. Drop unnecessary cast

    cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    7429c22 View commit details
    Browse the repository at this point in the history
  13. Fix wrong strncmp replacement

    Fixes 4c66eb6
    cgzones committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    e12d48a View commit details
    Browse the repository at this point in the history
  14. Merge branch 'Fix wrong strncmp replacement' of cgzones/htop

    Daniel Lange authored and Daniel Lange committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    f8bd5ac View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2020

  1. Configuration menu
    Copy the full SHA
    b08b255 View commit details
    Browse the repository at this point in the history
  2. Mark user field of Process const

    It's a non-owning pointer to a hashtable entry.
    cgzones committed Oct 22, 2020
    Configuration menu
    Copy the full SHA
    11bf7be View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2020

  1. Add process environment for FreeBSD

    overhacked authored and cgzones committed Oct 26, 2020
    Configuration menu
    Copy the full SHA
    0ae2bb1 View commit details
    Browse the repository at this point in the history
  2. Simplify environment-reading code

    Suggested PR changes, thanks @cgzones
    overhacked authored and cgzones committed Oct 26, 2020
    Configuration menu
    Copy the full SHA
    94e32cf View commit details
    Browse the repository at this point in the history
  3. Parse POWER_SUPPLY_CAPACITY

    If POWER_SUPPLY_{CHARGE,ENERGY}_NOW is missing then try to use
    POWER_SUPPLY_CAPACITY to determine current charge level.
    jpalus authored and cgzones committed Oct 26, 2020
    Configuration menu
    Copy the full SHA
    167adc0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f757810 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    72103e9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7109172 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4eb4439 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a3bb7cb View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2020

  1. Configuration menu
    Copy the full SHA
    c98d457 View commit details
    Browse the repository at this point in the history
  2. Drop duplicate and always true condition

    This block is only entered if this->owner is true.
    cgzones committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    1533ea8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27870bd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac2b07e View commit details
    Browse the repository at this point in the history
  5. Drop always true condition

    cgzones committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    059810c View commit details
    Browse the repository at this point in the history
  6. Drop duplicate assignment

    cgzones committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    e89b289 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2020

  1. Configuration menu
    Copy the full SHA
    cf1a9ec View commit details
    Browse the repository at this point in the history
  2. Unify function argument names

    Name first argument of ProcessList_goThroughEntries consistently super
    Name first argument of ProcessList_new consistently userTable
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    61bae4c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c1f5c5 View commit details
    Browse the repository at this point in the history
  4. Implement RichString_setLen as function

    Make it more readable and fix unenclosed macro arguments
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    7019949 View commit details
    Browse the repository at this point in the history
  5. Implement IncSet_filter as function

    Make it more readable and fix unenclosed macro arguments
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    6b3dbd5 View commit details
    Browse the repository at this point in the history
  6. Implement LinuxProcess_effectiveIOPriority as function

    Make it more readable and fix unenclosed macro arguments
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    d33b2be View commit details
    Browse the repository at this point in the history
  7. Implement Process_isUserlandThread as function

    Make it more readable and fix unenclosed macro arguments
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    76797f8 View commit details
    Browse the repository at this point in the history
  8. Implement Process_getParentPid and Process_isChildOf as functions

    Make it more readable and fix unenclosed macro arguments
    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    887dfde View commit details
    Browse the repository at this point in the history
  9. Simplify RichString_begin

    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    6375df4 View commit details
    Browse the repository at this point in the history
  10. Small ListItem update

    cgzones committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    03b773b View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2020

  1. Add HTOP_$platform defines to config.h header

    Can be used to conditionally compile platform specific code.
    cgzones committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ddbb0c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88eec2d View commit details
    Browse the repository at this point in the history
  3. FreeBSD: Platform update

    cgzones committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c91061c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c2fdfd9 View commit details
    Browse the repository at this point in the history
  5. FreeBSD: update ProcessList

    cgzones committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    97ea45c View commit details
    Browse the repository at this point in the history
  6. FreeBSD: update Process

    cgzones committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    049046c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bbf0105 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2020

  1. Configuration menu
    Copy the full SHA
    dde71c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de884d1 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'source-format' of BenBE/htop

    Closes #158
    Daniel Lange authored and Daniel Lange committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    6787c43 View commit details
    Browse the repository at this point in the history
  4. Fix segmentation fault when column name is NULL.

    So, some columns (ex: SECATTR) can be sortable now.
    Erdem Ersoy authored and cgzones committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    59ef15b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    43d274a View commit details
    Browse the repository at this point in the history
  6. Zram Meter feature

    KnightMurloc authored and cgzones committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    ab17ef4 View commit details
    Browse the repository at this point in the history
  7. Add SystemdMeter

    cgzones committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    2a9e8ca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    15652e7 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2020

  1. Address items from review

    adsr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    a83f515 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2020

  1. Handle data wraparounds in IO Meters

    If the current data is smaller than the previous one, either by a retrieve error
    or a device removal or a original data wraparound, sanitize the value to zero.
    
    Fixes: #299
    cgzones committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    0c19088 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'wrap' of cgzones/htop

    Daniel Lange authored and Daniel Lange committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    742e610 View commit details
    Browse the repository at this point in the history
  3. Assert Vector_get returns an object

    It is generally assumed Vector_get returns a non-NULL object.
    Use a generic assert in Vector_get instead of in callers.
    cgzones committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    0806a79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ab0915 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c790b6a View commit details
    Browse the repository at this point in the history
  6. Convert addattrstr to static inline function

    NB: The macro could have been a braced while(0) loop, which without optimization produces more code
    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    db0a139 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1877325 View commit details
    Browse the repository at this point in the history
  8. Spacing after keywords (while)

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    0a51eae View commit details
    Browse the repository at this point in the history
  9. Spacing after keywords (if)

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    374edb9 View commit details
    Browse the repository at this point in the history
  10. Spacing after keywords (for)

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    adf797c View commit details
    Browse the repository at this point in the history
  11. Fix indentation to 3 spaces

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    493217e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9a16b10 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b23f823 View commit details
    Browse the repository at this point in the history
  14. Spacing around operators

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    61e14d4 View commit details
    Browse the repository at this point in the history
  15. Embracing branches

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    4586951 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0d64ca9 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1c060a9 View commit details
    Browse the repository at this point in the history
  18. Shorten initializer

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    cb8bb12 View commit details
    Browse the repository at this point in the history
  19. Integrate NAN check into assignment

    The check for NAN is kept to avoid relying on implementation details of the CLAMP macro/function
    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    0e922d4 View commit details
    Browse the repository at this point in the history
  20. Remove unnecessary braces

    BenBE committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    e7b95fe View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. Implement screen for active file locks

    StoneBam authored and BenBE committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    84dad4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d6da2e View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2020

  1. Configuration menu
    Copy the full SHA
    1876305 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d431786 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e976b8 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2020

  1. Remove duplicate test for NUL

    Fixes #308, thanks @qarmin (Rafał Mikrut)
    Daniel Lange authored and Daniel Lange committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    da2dcf9 View commit details
    Browse the repository at this point in the history
  2. Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE

    Daniel Lange authored and Daniel Lange committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    bb908f3 View commit details
    Browse the repository at this point in the history
  3. Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzones

    Daniel Lange authored and Daniel Lange committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    f2b2735 View commit details
    Browse the repository at this point in the history
  4. Fixup of SystemdMeter merge

    cgzones committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    d785b1b View commit details
    Browse the repository at this point in the history
  5. Introduce spaceship comparison for Processes

    If currently two unsigned values are compared via `a - b`, in the case b
    is actually bigger than a, the result will not be an negative number (as
    -1 is expected) but a huge positive number as the subtraction is an
    unsigned subtraction.
    
    Avoid over-/underflow affected operations; use comparisons.
    Modern compilers will generate sane code, like:
        xor     eax, eax
        cmp     rdi, rsi
        seta    al
        sbb     eax, 0
        ret
    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    397b5c4 View commit details
    Browse the repository at this point in the history
  6. Use uid_t type for Process_getuid

    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    42073ba View commit details
    Browse the repository at this point in the history
  7. Mark ProcessList_keyAt argument const

    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    9131732 View commit details
    Browse the repository at this point in the history
  8. Mark local functions static

    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    9f67b95 View commit details
    Browse the repository at this point in the history
  9. Drop hideThreads Setting

    It is only used to read process directories on RedHat beginning with a dot.
    Unconditionally accept directories with a starting dot.
    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    ad72b74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f856fe6 View commit details
    Browse the repository at this point in the history
  11. Use spaceship comparison for TTYs

    cgzones authored and BenBE committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    0411fdb View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-proce…

    …sses
    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    0951090 View commit details
    Browse the repository at this point in the history
  2. Apply patch from BenBE as per htop-dev/htop#241 (comment)

    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    8f2d129 View commit details
    Browse the repository at this point in the history
  3. Fix whitespace before comma in the new color definitions

    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    19868a3 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'highlight-new-old-processes'

    Thanks to @adsr for the great work
    Closes #241, closes #74
    Massive rebase, so #keepfingerscrossed
    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    8bc083c View commit details
    Browse the repository at this point in the history
  5. hwloc = (portable) HardWare LOCality, not related to lock

    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    309f1d7 View commit details
    Browse the repository at this point in the history
  6. Add debug state to the configure report (thanks @BenBE for the idea)

    Daniel Lange authored and Daniel Lange committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    a8a723f View commit details
    Browse the repository at this point in the history
  7. Add process column for normalized CPU usage

    Shows the process CPU usage divided by the number of CPU cores
    cgzones authored and BenBE committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    15eab20 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2020

  1. Hashtable update

    - use consistent type for key by introducing a new typedef
    - use unsigned types for sizes
    - name parameters in foreach function typedef
    cgzones authored and BenBE committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    7914ec2 View commit details
    Browse the repository at this point in the history
  2. Hashtable: use dynamic growth and use primes as size

    Dynamically increase the hashmap size to not exceed the load factor and
    avoid too long chains.
    
    Switch from Separate Chaining to Robin Hood linear probing to improve
    cache locality.
    
    Use primes as size to further avoid collisions.
    
    E.g. on a standard kde system the number of entries in the ProcessTable
    might be around 650.
    cgzones authored and BenBE committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    307c34b View commit details
    Browse the repository at this point in the history
  3. Merge individual Battery.[ch] files into Platform.[ch]

    Consistent with everything else involving platform-specific
    calls from core htop code.
    natoscott committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    351f93e View commit details
    Browse the repository at this point in the history