Skip to content

Commit

Permalink
bsd-user: Clean up includes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Feb 4, 2016
1 parent 87c9b5e commit 2231197
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 51 deletions.
8 changes: 1 addition & 7 deletions bsd-user/bsdload.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
/* Code for loading BSD executables. Mostly linux kernel code. */

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "qemu/osdep.h"

#include "qemu.h"

Expand Down
8 changes: 1 addition & 7 deletions bsd-user/elfload.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
/* This is the Linux kernel elf-loading code, ported into user space */

#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include "qemu/osdep.h"
#include <sys/mman.h>
#include <stdlib.h>
#include <string.h>

#include "qemu.h"
#include "disas/disas.h"
Expand Down
8 changes: 1 addition & 7 deletions bsd-user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "qemu/osdep.h"
#include <machine/trap.h>
#include <sys/types.h>
#include <sys/mman.h>

#include "qemu.h"
Expand Down
7 changes: 1 addition & 6 deletions bsd-user/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "qemu/osdep.h"
#include <sys/mman.h>

#include "qemu.h"
Expand Down
7 changes: 1 addition & 6 deletions bsd-user/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include "qemu/osdep.h"

#include "qemu.h"
#include "target_signal.h"
Expand Down
6 changes: 1 addition & 5 deletions bsd-user/strace.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <stdio.h>
#include <errno.h>
#include "qemu/osdep.h"
#include <sys/select.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/ioccom.h>
#include <ctype.h>

#include "qemu.h"

Expand Down
12 changes: 1 addition & 11 deletions bsd-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <limits.h>
#include <sys/types.h>
#include "qemu/osdep.h"
#include <sys/mman.h>
#include <sys/syscall.h>
#include <sys/param.h>
Expand Down
3 changes: 1 addition & 2 deletions bsd-user/uaccess.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* User memory access */
#include <stdio.h>
#include <string.h>
#include "qemu/osdep.h"

#include "qemu.h"

Expand Down

0 comments on commit 2231197

Please sign in to comment.