src: remove sys/wait.h from many files

Most code now uses the virProcess / virCommand APIs, so
the need for sys/wait.h is quite limited. Removing this
include removes the dependency on GNULIB providing a
dummy sys/wait.h for Windows.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé committed 2020-02-04 14:00:44 +00:00
1 parent aa52947fc6
commit bfeb56b3ad
22 files changed
+3 -23

No files matched your search

-1
View File
@@ -24,7 +24,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <time.h>
#include <gio/gnetworking.h>
-1
View File
@@ -25,7 +25,6 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <mntent.h>
-1
View File
@@ -30,7 +30,6 @@
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <net/if.h>
#ifdef HAVE_SYSCTLBYNAME
-1
View File
@@ -29,7 +29,6 @@
#include <dirent.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include "virerror.h"
#include "openvz_conf.h"
-1
View File
@@ -30,7 +30,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/wait.h>
#include "virerror.h"
#include "datatypes.h"
-1
View File
@@ -51,7 +51,6 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdarg.h>
#include <sys/utsname.h>
-1
View File
@@ -25,7 +25,6 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include "virerror.h"
#include "qemu_conf.h"
-1
View File
@@ -30,7 +30,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include "qemu_driver.h"
-1
View File
@@ -23,7 +23,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <getopt.h>
#include <grp.h>
-1
View File
@@ -23,7 +23,6 @@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#include <fcntl.h>
#ifdef HAVE_IFADDRS_H
-1
View File
@@ -22,7 +22,6 @@
#include <config.h>
#include <dirent.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
-1
View File
@@ -21,7 +21,6 @@
#include <config.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-1
View File
@@ -19,7 +19,6 @@
#include <config.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
-1
View File
@@ -26,7 +26,6 @@
#include <fcntl.h>
#include <unistd.h>
#ifndef WIN32
# include <sys/wait.h>
# include <termios.h>
#endif
-1
View File
@@ -42,7 +42,6 @@
# include <libutil.h>
#endif /* !HAVE_LIBUTIL_H */
#include <sys/stat.h>
#include <sys/wait.h>
#if defined(HAVE_SYS_MOUNT_H)
# include <sys/mount.h>
#endif
-1
View File
@@ -22,7 +22,6 @@
#include <config.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
-1
View File
@@ -25,7 +25,6 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include "internal.h"
#include "viriptables.h"
-2
View File
@@ -19,8 +19,6 @@
#include <config.h>
#include <sys/wait.h>
#include "virnetdevveth.h"
#include "viralloc.h"
#include "virlog.h"
-1
View File
@@ -22,7 +22,6 @@
#include <config.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
-1
View File
@@ -30,7 +30,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/statvfs.h>
+3 -1
View File
@@ -23,7 +23,9 @@
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#ifndef WIN32
# include <sys/wait.h>
#endif
#include <fcntl.h>
#include "testutils.h"
-1
View File
@@ -24,7 +24,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include "testutils.h"