htop/linux
Christian Göttsche 49bb3c49ac Silence clang analyzer warnings
linux/LinuxProcessTable.c:795:11: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [unix.Stream]
      795 |    while (fgets(buffer, sizeof(buffer), fp)) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/LinuxProcessTable.c:795:11: warning: Read function called when stream is in EOF state. Function has no effect [unix.Stream]
      795 |    while (fgets(buffer, sizeof(buffer), fp)) {
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/LinuxProcessTable.c:840:11: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [unix.Stream]
      840 |    while (fgets(linebuf, sizeof(linebuf), file) != NULL) {
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/LinuxProcessTable.c:840:11: warning: Read function called when stream is in EOF state. Function has no effect [unix.Stream]
      840 |    while (fgets(linebuf, sizeof(linebuf), file) != NULL) {
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    linux/LinuxMachine.c:81:22: warning: The 1st argument to 'openat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWD [unix.StdCLibraryFunctions]
       81 |       int cpuDirFd = openat(dirfd(dir), entry->d_name, O_DIRECTORY | O_PATH | O_NOFOLLOW);
          |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/LinuxMachine.c:501:11: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [unix.Stream]
      501 |    while (fgets(buffer, sizeof(buffer), file)) {
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/LinuxMachine.c:501:11: warning: Read function called when stream is in EOF state. Function has no effect [unix.Stream]
      501 |    while (fgets(buffer, sizeof(buffer), file)) {
          |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    linux/Platform.c:467:22: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [unix.Stream]
      467 |    } while ((bytes = fread(env + size, 1, capacity - size, fp)) > 0);
          |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/Platform.c:467:22: warning: Read function called when stream is in EOF state. Function has no effect [unix.Stream]
      467 |    } while ((bytes = fread(env + size, 1, capacity - size, fp)) > 0);
          |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/Platform.c:585:15: warning: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior [unix.Stream]
      585 |       total = fscanf(fp, "full avg10=%32lf avg60=%32lf avg300=%32lf total=%*f ", ten, sixty, threehundred);
          |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/Platform.c:585:15: warning: Read function called when stream is in EOF state. Function has no effect [unix.Stream]
      585 |       total = fscanf(fp, "full avg10=%32lf avg60=%32lf avg300=%32lf total=%*f ", ten, sixty, threehundred);
          |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    linux/Platform.c:789:21: warning: The 1st argument to 'openat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWD [unix.StdCLibraryFunctions]
      789 |       int entryFd = openat(dirfd(dir), entryName, O_DIRECTORY | O_PATH);
          |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-20 22:38:42 +02:00
..
CGroupUtils.c Shorten docker container IDs to 12 characters 2023-12-31 22:09:01 +01:00
CGroupUtils.h Update includes based on IWYU 2023-12-26 15:14:19 +01:00
GPU.c Use uppercase floating point literals 2024-04-08 18:12:39 +02:00
GPU.h Align parameter names in declarations with definitions 2024-04-08 18:12:39 +02:00
GPUMeter.c Explicitly specify supported modes of all meters 2024-05-22 20:55:45 +02:00
GPUMeter.h Linux: add GPU meter and process column 2024-03-27 19:49:23 +01:00
HugePageMeter.c Explicitly specify supported modes of all meters 2024-05-22 20:55:45 +02:00
HugePageMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriority.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.c Add includes for config.h as per the discussion in PR #1337 2023-12-26 15:14:19 +01:00
IOPriorityPanel.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
LibNl.c Use uppercase floating point literals 2024-04-08 18:12:39 +02:00
LibNl.h linux: move libnl code into separate file 2024-04-05 19:27:07 +02:00
LibSensors.c Be less strict about thermal zones for RockChip RK3588 SoC 2024-08-31 20:48:43 +02:00
LibSensors.h Add missing copyright/file headers 2023-05-25 08:59:32 +02:00
LinuxMachine.c Silence clang analyzer warnings 2024-09-20 22:38:42 +02:00
LinuxMachine.h Linux: add GPU meter and process column 2024-03-27 19:49:23 +01:00
LinuxProcess.c Linux: Permit non-ASCII for CGROUP, CONTAINER & SECATTR fields 2024-04-26 19:35:15 +02:00
LinuxProcess.h Linux: add process column whether it is marked a container process 2024-04-06 19:42:28 +02:00
LinuxProcessTable.c Silence clang analyzer warnings 2024-09-20 22:38:42 +02:00
LinuxProcessTable.h Relocate include of config.h from header to source modeule 2023-12-26 15:14:19 +01:00
Platform.c Silence clang analyzer warnings 2024-09-20 22:38:42 +02:00
Platform.h Relocate include of config.h from header to source modeule 2023-12-26 15:14:19 +01:00
PressureStallMeter.c Explicitly specify supported modes of all meters 2024-05-22 20:55:45 +02:00
PressureStallMeter.h Linux: add IRQ PSI meter 2023-02-13 22:06:55 -06:00
ProcessField.h Linux: add process column whether it is marked a container process 2024-04-06 19:42:28 +02:00
SELinuxMeter.c Restrict supported modes for text-only meters 2024-05-22 20:55:45 +02:00
SELinuxMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.c Restrict supported modes for text-only meters 2024-05-22 20:55:45 +02:00
SystemdMeter.h Add a systemd user meter to monitor user units. 2023-02-05 00:14:58 +01:00
ZramMeter.c Explicitly specify supported modes of all meters 2024-05-22 20:55:45 +02:00
ZramMeter.h Add missing copyright/file headers 2023-05-25 08:59:32 +02:00
ZramStats.h Rename ProcessList to ProcessTable throughout 2023-08-31 14:13:16 +10:00
ZswapStats.h Remove unused zswap pool size calculation from commit 71f5a80d9e 2023-11-21 08:38:27 +11:00