IWYU update (Linux)

This commit is contained in:
Christian Göttsche 2020-11-18 14:26:30 +01:00 committed by BenBE
parent 329011bb98
commit 7cf5277594
18 changed files with 50 additions and 33 deletions

View File

@ -5,7 +5,7 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "config.h"
#include "config.h" // IWYU pragma: keep
#include "Action.h"
@ -20,6 +20,7 @@ in the source distribution for its full text.
#include "CRT.h"
#include "EnvScreen.h"
#include "FunctionBar.h"
#include "Hashtable.h"
#include "IncSet.h"
#include "InfoScreen.h"
#include "ListItem.h"

View File

@ -5,9 +5,12 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "config.h"
#include "CPUMeter.h"
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View File

@ -14,7 +14,6 @@ in the source distribution for its full text.
#include "FunctionBar.h"
#include "ListItem.h"
#include "Object.h"
#include "Platform.h"
#include "Process.h"
#include "ProvideCurses.h"
#include "XUtils.h"

View File

@ -7,13 +7,14 @@ in the source distribution for its full text.
#include "config.h" // IWYU pragma: keep
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "Compat.h"
#include "XUtils.h"
#include <fcntl.h> // IWYU pragma: keep
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h> // IWYU pragma: keep
#include "XUtils.h" // IWYU pragma: keep
int Compat_fstatat(int dirfd,

View File

@ -7,6 +7,7 @@ in the source distribution for its full text.
#include "DiskIOMeter.h"
#include <stdbool.h>
#include <stdio.h>
#include <sys/time.h>

View File

@ -5,13 +5,18 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "config.h" // IWYU pragma: keep
#include "Hashtable.h"
#include "XUtils.h"
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "Macros.h"
#include "XUtils.h"
#ifndef NDEBUG

View File

@ -10,6 +10,7 @@ in the source distribution for its full text.
#include "config.h" // IWYU pragma: keep
#include <stdbool.h>
#include <stdint.h>
#include <sys/time.h>
#include "ListItem.h"

View File

@ -1,5 +1,6 @@
#include "NetworkIOMeter.h"
#include <stdbool.h>
#include <stddef.h>
#include <sys/time.h>

View File

@ -17,13 +17,14 @@ in the source distribution for its full text.
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/resource.h>
#include "CRT.h"
#include "Macros.h"
#include "Platform.h"
#include "ProcessList.h"
#include "RichString.h"
#include "Settings.h"
#include "XUtils.h"

View File

@ -9,7 +9,6 @@ in the source distribution for its full text.
*/
#include <stdbool.h>
#include <time.h>
#include <sys/types.h>
#include "Object.h"

View File

@ -9,25 +9,14 @@ in the source distribution for its full text.
#include "ProcessLocksScreen.h"
#include <dirent.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "CRT.h"
#include "Compat.h"
#include "FunctionBar.h"
#include "IncSet.h"
#include "Panel.h"
#include "Platform.h"
#include "ProcessList.h"
#include "ProvideCurses.h"
#include "Vector.h"
#include "XUtils.h"

View File

@ -7,9 +7,13 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "InfoScreen.h"
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdlib.h>
#include "InfoScreen.h"
#include "Object.h"
#include "Process.h"
typedef struct ProcessLocksScreen_ {

1
htop.c
View File

@ -18,7 +18,6 @@ in the source distribution for its full text.
#include <unistd.h>
#include "Action.h"
#include "ColumnsPanel.h"
#include "CRT.h"
#include "Hashtable.h"
#include "Header.h"

View File

@ -11,13 +11,14 @@ in the source distribution for its full text.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syscall.h>
#include <unistd.h>
#include "CRT.h"
#include "Macros.h"
#include "Process.h"
#include "ProvideCurses.h"
#include "RichString.h"
#include "XUtils.h"

View File

@ -16,9 +16,9 @@ in the source distribution for its full text.
#include "IOPriority.h"
#include "Object.h"
#include "Process.h"
#include "RichString.h"
#include "Settings.h"
#define PROCESS_FLAG_LINUX_IOPRIO 0x0100
#define PROCESS_FLAG_LINUX_OPENVZ 0x0200
#define PROCESS_FLAG_LINUX_VSERVER 0x0400

View File

@ -12,12 +12,16 @@ in the source distribution for its full text.
#include <assert.h>
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "BatteryMeter.h"
@ -51,6 +55,7 @@ in the source distribution for its full text.
#include "UptimeMeter.h"
#include "XUtils.h"
#include "ZramMeter.h"
#include "ZramStats.h"
#include "zfs/ZfsArcMeter.h"
#include "zfs/ZfsArcStats.h"

View File

@ -9,12 +9,16 @@ in the source distribution for its full text.
#include <dlfcn.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "CRT.h"
#include "Macros.h"
#include "Object.h"
#include "RichString.h"
#include "XUtils.h"

View File

@ -2,7 +2,10 @@
#include "CRT.h"
#include "Meter.h"
#include "Object.h"
#include "Platform.h"
#include "RichString.h"
static const int ZramMeter_attributes[] = {
ZRAM