src: More cleanup of some system headers already contained in internal.h

All of the ones being removed are pulled in by internal.h. The only
exception is sanlock which expects the application to include <stdint.h>
before sanlock's headers, because sanlock prototypes use fixed width
int, but they don't include stdint.h themselves, so we have to leave
that one in place.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Erik Skultety 2018-09-18 15:55:56 +02:00
parent 9403b63102
commit 5165ff0971
214 changed files with 0 additions and 344 deletions

View File

@ -23,10 +23,7 @@
#include <config.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "capabilities.h"

View File

@ -28,7 +28,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "virerror.h"
#include "datatypes.h"

View File

@ -25,7 +25,6 @@
#include <config.h>
#include <unistd.h>
#include <errno.h>
#include "virerror.h"
#include "datatypes.h"

View File

@ -23,13 +23,10 @@
#include <config.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include "virerror.h"
#include "datatypes.h"

View File

@ -25,7 +25,6 @@
*/
#include <config.h>
#include <stdint.h>
#include "virlog.h"
#include "viralloc.h"

View File

@ -24,7 +24,6 @@
#ifndef __VIR_CPU_PPC64_DATA_H__
# define __VIR_CPU_PPC64_DATA_H__
# include <stdint.h>
typedef struct _virCPUppc64PVR virCPUppc64PVR;
struct _virCPUppc64PVR {

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <stdint.h>
#include "virlog.h"
#include "viralloc.h"

View File

@ -24,7 +24,6 @@
#ifndef __VIR_CPU_X86_DATA_H__
# define __VIR_CPU_X86_DATA_H__
# include <stdint.h>
typedef struct _virCPUx86CPUID virCPUx86CPUID;
struct _virCPUx86CPUID {

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <string.h>
#include <unistd.h>
#include "internal.h"

View File

@ -24,7 +24,6 @@
#include <config.h>
#include <string.h>
#include <unistd.h>
#include "internal.h"

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <stdint.h>
#include <libxml/parser.h>
#include <libxml/xpathInternals.h>

View File

@ -20,7 +20,6 @@
*/
#include <config.h>
#include <errno.h>
#include <dirent.h>
#include <libudev.h>

View File

@ -23,8 +23,6 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -22,7 +22,6 @@
*/
#include <config.h>
#include <string.h>
#include <libxl.h>
#include "internal.h"

View File

@ -27,7 +27,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <getopt.h>
#include <stdlib.h>
#include "lock_daemon.h"

View File

@ -21,11 +21,8 @@
#include <config.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -33,7 +33,6 @@
#if HAVE_DLFCN_H
# include <dlfcn.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include "configmake.h"

View File

@ -1,5 +1,4 @@
#include <config.h>
#include <stdlib.h>
#include "internal.h"
#include "virconf.h"

View File

@ -27,7 +27,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <getopt.h>
#include <stdlib.h>
#include "log_daemon.h"

View File

@ -27,8 +27,6 @@
#include <config.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/wait.h>

View File

@ -38,7 +38,6 @@
#include <sys/un.h>
#include <sys/personality.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <getopt.h>

View File

@ -27,7 +27,6 @@
#include <fcntl.h>
#include <sched.h>
#include <sys/utsname.h>
#include <string.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>

View File

@ -24,8 +24,6 @@
#include <config.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <sys/mount.h>
#include <mntent.h>

View File

@ -25,12 +25,8 @@
#include <sys/types.h>
#include <sys/poll.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -25,7 +25,6 @@
#include <config.h>
#include <stdlib.h>
#include "virthread.h"
#include "virfile.h"

View File

@ -25,7 +25,6 @@
#include <config.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>

View File

@ -24,7 +24,6 @@
#include <config.h>
#include <stdlib.h>
#include <libhal.h>
#include "node_device_conf.h"

View File

@ -21,7 +21,6 @@
*/
#include <libudev.h>
#include <stdint.h>
#define SYSFS_DATA_SIZE 4096
#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"

View File

@ -24,7 +24,6 @@
#include <config.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/utsname.h>

View File

@ -28,16 +28,12 @@
#include <config.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <dirent.h>
#include <time.h>
#include <sys/stat.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <sys/wait.h>
#include "virerror.h"

View File

@ -30,12 +30,8 @@
#include <sys/types.h>
#include <sys/poll.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>

View File

@ -26,12 +26,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <libssh2.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View File

@ -29,7 +29,6 @@
#include <poll.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/time.h>
#include "qemu_agent.h"

View File

@ -23,13 +23,9 @@
#include <config.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <arpa/inet.h>

View File

@ -27,12 +27,8 @@
#include <sys/poll.h>
#include <sys/time.h>
#include <dirent.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>

View File

@ -25,7 +25,6 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h>
#include "qemu_hostdev.h"
#include "virlog.h"

View File

@ -28,7 +28,6 @@
#include <sys/un.h>
#include <poll.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include "qemu_monitor_text.h"

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <string.h>
#include "qemu_monitor_text.h"
#include "viralloc.h"

View File

@ -24,7 +24,6 @@
#ifndef __QEMU_SECURITY_H__
# define __QEMU_SECURITY_H__
# include <stdbool.h>
# include "qemu_conf.h"
# include "domain_conf.h"

View File

@ -28,7 +28,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <getopt.h>
#include <stdlib.h>
#include <grp.h>
#include "libvirt_internal.h"

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include "virnetdaemon.h"

View File

@ -20,7 +20,6 @@
#include <config.h>
#include <stdlib.h>
#include <unistd.h>
#include "virnetmessage.h"

View File

@ -26,7 +26,6 @@
#include <config.h>
#include <time.h>
#include <stdlib.h>
#if WITH_AVAHI
# include <avahi-client/client.h>

View File

@ -22,7 +22,6 @@
#include <unistd.h>
#include <fnmatch.h>
#include <stdlib.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -31,7 +31,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/apparmor.h>
#include <errno.h>
#include <unistd.h>
#include <wait.h>

View File

@ -21,7 +21,6 @@
*
*/
#include <config.h>
#include <string.h>
#include "virerror.h"
#include "virlog.h"

View File

@ -25,11 +25,8 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <fcntl.h>
#include <getopt.h>

View File

@ -33,7 +33,6 @@
#include <config.h>
#include <parted/parted.h>
#include <string.h>
#include <libdevmapper.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <string.h>
#include <sys/stat.h>
#include "datatypes.h"

View File

@ -22,7 +22,6 @@
*/
#include <config.h>
#include <string.h>
#include <unistd.h>
#include "dirname.h"

View File

@ -25,9 +25,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include "virerror.h"
#include "storage_backend_fs.h"

View File

@ -25,7 +25,6 @@
#include <dirent.h>
#include <sys/wait.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>

View File

@ -26,7 +26,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <regex.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -32,8 +32,6 @@
#if HAVE_PWD_H
# include <pwd.h>
#endif
#include <errno.h>
#include <string.h>
#include "virerror.h"
#include "datatypes.h"

View File

@ -25,7 +25,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "virerror.h"
#include "storage_file_fs.h"

View File

@ -18,7 +18,6 @@
#include <config.h>
#include <string.h>
#include <regex.h>
#include <sys/types.h>
#include <sys/wait.h>

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <string.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>

View File

@ -23,13 +23,9 @@
#include <config.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <arpa/inet.h>

View File

@ -25,12 +25,8 @@
#include <sys/types.h>
#include <sys/poll.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -29,7 +29,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include "virutil.h"
#include "virthread.h"

View File

@ -21,7 +21,6 @@
*/
#include <config.h>
#include <stdlib.h>
#include "viralloc.h"
#include "virlog.h"

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <stdlib.h>
#include <arpa/inet.h>
#ifdef __linux__
# include <linux/rtnetlink.h>

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <stdlib.h>
#include "virauth.h"
#include "virutil.h"

View File

@ -23,10 +23,6 @@
#include <config.h>
#include <limits.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include "virbitmap.h"

View File

@ -22,8 +22,6 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "c-ctype.h"

View File

@ -29,9 +29,6 @@
# include <sys/mount.h>
#endif
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/stat.h>
#ifdef MAJOR_IN_MKDEV

View File

@ -25,7 +25,6 @@
#include <regex.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -23,11 +23,7 @@
#include <config.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>

View File

@ -22,8 +22,6 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "virerror.h"

View File

@ -28,7 +28,6 @@
#include "virlog.h"
#include "virerror.h"
#include <stdlib.h>
VIR_LOG_INIT("util.event");

View File

@ -23,11 +23,8 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <poll.h>
#include <sys/time.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -41,7 +41,6 @@
#if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
# include <mntent.h>
#endif
#include <stdlib.h>
#if HAVE_MMAP
# include <sys/mman.h>
#endif

View File

@ -21,8 +21,6 @@
#include <config.h>
#include <string.h>
#include <stdlib.h>
#include "virerror.h"
#include "virhash.h"

View File

@ -13,8 +13,6 @@
#ifndef __VIR_HASH_H__
# define __VIR_HASH_H__
# include <stdint.h>
# include <stdbool.h>
# include "viralloc.h"

View File

@ -27,7 +27,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include "virerror.h"
#include "virhook.h"

View File

@ -23,10 +23,6 @@
#include <config.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#include <dirent.h>
#include <sys/utsname.h>
#include <fcntl.h>

View File

@ -29,7 +29,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include "virhostdev.h"
#include "viralloc.h"

View File

@ -23,10 +23,6 @@
#include <config.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#include <sys/utsname.h>
#include <fcntl.h>
#include <sys/ioctl.h>

View File

@ -23,11 +23,7 @@
#include <config.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>

View File

@ -19,7 +19,6 @@
#include <config.h>
#include "virkeycode.h"
#include <string.h>
#include <stddef.h>
#include "virkeycodetable_atset1.h"

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <stdlib.h>
#include "c-ctype.h"
#include "virmacaddr.h"

View File

@ -42,8 +42,6 @@ VIR_ENUM_IMPL(virNetDevMacVLanMode, VIR_NETDEV_MACVLAN_MODE_LAST,
"passthrough")
#if WITH_MACVTAP
# include <stdint.h>
# include <errno.h>
# include <fcntl.h>
# include <sys/socket.h>
# include <sys/ioctl.h>

View File

@ -35,8 +35,6 @@
#include "virstring.h"
#include "datatypes.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <regex.h>
#include <sys/types.h>

View File

@ -48,8 +48,6 @@ VIR_ENUM_IMPL(virNetDevVPortProfileOp, VIR_NETDEV_VPORT_PROFILE_OP_LAST,
#if WITH_VIRTUALPORT
# include <stdint.h>
# include <errno.h>
# include <fcntl.h>
# include <c-ctype.h>
# include <sys/socket.h>

View File

@ -30,7 +30,6 @@
#include <config.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -29,12 +29,9 @@
#include <dirent.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include "dirname.h"
#include "virlog.h"

View File

@ -24,8 +24,6 @@
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#if HAVE_SYS_MOUNT_H

View File

@ -21,7 +21,6 @@
#include <config.h>
#include <stdlib.h>
#include <inttypes.h>
#include <math.h>
#include <strings.h>

View File

@ -28,8 +28,6 @@
#include <dirent.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -22,10 +22,7 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include "c-ctype.h"
#include <errno.h>
#include "virerror.h"
#include "virsexpr.h"

View File

@ -26,7 +26,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include "viralloc.h"
#include "virxml.h"
#include "viruuid.h"

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <string.h>
#include <sys/stat.h>
#include "datatypes.h"

View File

@ -21,7 +21,6 @@
#include <config.h>
#include <stdlib.h>
#include <regex.h>
#include <locale.h>

View File

@ -27,7 +27,6 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include "virerror.h"
#include "virsysinfo.h"

View File

@ -26,8 +26,6 @@
#include <dirent.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -26,10 +26,8 @@
#include <config.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
#include <sys/stat.h>
@ -40,7 +38,6 @@
#endif
#include <sys/types.h>
#include <string.h>
#include <termios.h>
#if WITH_DEVMAPPER

View File

@ -25,10 +25,7 @@
#include "viruuid.h"
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>

Some files were not shown because too many files have changed in this diff Show More