mirror of https://github.com/htop-dev/htop.git
49bb3c49ac
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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
---|---|---|
.. | ||
CGroupUtils.c | ||
CGroupUtils.h | ||
GPU.c | ||
GPU.h | ||
GPUMeter.c | ||
GPUMeter.h | ||
HugePageMeter.c | ||
HugePageMeter.h | ||
IOPriority.h | ||
IOPriorityPanel.c | ||
IOPriorityPanel.h | ||
LibNl.c | ||
LibNl.h | ||
LibSensors.c | ||
LibSensors.h | ||
LinuxMachine.c | ||
LinuxMachine.h | ||
LinuxProcess.c | ||
LinuxProcess.h | ||
LinuxProcessTable.c | ||
LinuxProcessTable.h | ||
Platform.c | ||
Platform.h | ||
PressureStallMeter.c | ||
PressureStallMeter.h | ||
ProcessField.h | ||
SELinuxMeter.c | ||
SELinuxMeter.h | ||
SystemdMeter.c | ||
SystemdMeter.h | ||
ZramMeter.c | ||
ZramMeter.h | ||
ZramStats.h | ||
ZswapStats.h |