qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

bsd-user: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1454089805-5470-4-git-send-email-peter.maydell@linaro.org

+8 -51
+1 -7
bsd-user/bsdload.c
··· 1 1 /* Code for loading BSD executables. Mostly linux kernel code. */ 2 2 3 - #include <sys/types.h> 4 - #include <sys/stat.h> 5 - #include <fcntl.h> 6 - #include <errno.h> 7 - #include <unistd.h> 8 - #include <stdio.h> 9 - #include <stdlib.h> 3 + #include "qemu/osdep.h" 10 4 11 5 #include "qemu.h" 12 6
+1 -7
bsd-user/elfload.c
··· 1 1 /* This is the Linux kernel elf-loading code, ported into user space */ 2 2 3 - #include <stdio.h> 4 - #include <sys/types.h> 5 - #include <fcntl.h> 6 - #include <errno.h> 7 - #include <unistd.h> 3 + #include "qemu/osdep.h" 8 4 #include <sys/mman.h> 9 - #include <stdlib.h> 10 - #include <string.h> 11 5 12 6 #include "qemu.h" 13 7 #include "disas/disas.h"
+1 -7
bsd-user/main.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdarg.h> 22 - #include <string.h> 23 - #include <errno.h> 24 - #include <unistd.h> 19 + #include "qemu/osdep.h" 25 20 #include <machine/trap.h> 26 - #include <sys/types.h> 27 21 #include <sys/mman.h> 28 22 29 23 #include "qemu.h"
+1 -6
bsd-user/mmap.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdarg.h> 22 - #include <string.h> 23 - #include <unistd.h> 24 - #include <errno.h> 19 + #include "qemu/osdep.h" 25 20 #include <sys/mman.h> 26 21 27 22 #include "qemu.h"
+1 -6
bsd-user/signal.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <string.h> 22 - #include <stdarg.h> 23 - #include <unistd.h> 24 - #include <errno.h> 19 + #include "qemu/osdep.h" 25 20 26 21 #include "qemu.h" 27 22 #include "target_signal.h"
+1 -5
bsd-user/strace.c
··· 16 16 * along with this program; if not, see <http://www.gnu.org/licenses/>. 17 17 */ 18 18 19 - #include <stdio.h> 20 - #include <errno.h> 19 + #include "qemu/osdep.h" 21 20 #include <sys/select.h> 22 - #include <sys/types.h> 23 - #include <unistd.h> 24 21 #include <sys/syscall.h> 25 22 #include <sys/ioccom.h> 26 - #include <ctype.h> 27 23 28 24 #include "qemu.h" 29 25
+1 -11
bsd-user/syscall.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #include <stdlib.h> 20 - #include <stdio.h> 21 - #include <stdint.h> 22 - #include <stdarg.h> 23 - #include <string.h> 24 - #include <errno.h> 25 - #include <unistd.h> 26 - #include <fcntl.h> 27 - #include <time.h> 28 - #include <limits.h> 29 - #include <sys/types.h> 19 + #include "qemu/osdep.h" 30 20 #include <sys/mman.h> 31 21 #include <sys/syscall.h> 32 22 #include <sys/param.h>
+1 -2
bsd-user/uaccess.c
··· 1 1 /* User memory access */ 2 - #include <stdio.h> 3 - #include <string.h> 2 + #include "qemu/osdep.h" 4 3 5 4 #include "qemu.h" 6 5