htop/linux
Silke Hofstra 696f79fe50 Dynamically scale the ST_UID size to support 32-bit UIDs
While most Unix-like systems use 16-bit user IDs,
Linux supports 32-bit UIDs since version 2.6.
UIDs above 65535 are used for UID namespacing of containers,
where a container has its own set of 16-bit user IDs.
Processes in such containers will have (much) larger UIDs than 65535.

Because the current format strings for `ST_UID` and `USER`
are `%5d` and `%9d` respectively, processes with such UIDs
lead to misaligned columns.

Dynamically scale the `ST_UID` column and increase the size of `USER`
to 10 characters (length of UINT32_MAX) to ensure that the user ID always fits.

Additionally: clean up how the titlebuffer size calculation and ensure
the PID column has a minimum size of 5.
2021-10-27 21:20:59 +02:00
..
HugePageMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +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 Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
IOPriorityPanel.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
LibSensors.c IWYU update 2021-08-25 09:54:30 +02:00
LibSensors.h IWYU update 2021-08-25 09:54:30 +02:00
LinuxProcess.c Dynamically scale the ST_UID size to support 32-bit UIDs 2021-10-27 21:20:59 +02:00
LinuxProcess.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
LinuxProcessList.c Linux: ignore mapped /dev/zero 2021-10-25 21:05:28 +02:00
LinuxProcessList.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
Platform.c Linux: restore battery state with numbered AC's 2021-10-26 10:58:59 +02:00
Platform.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PressureStallMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
PressureStallMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ProcessField.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SELinuxMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SELinuxMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.c Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
SystemdMeter.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
ZramMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
ZramMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00