um: get rid of pointless include "..." where include <...> will do
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
此提交包含在:
@@ -9,10 +9,10 @@
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <asm/unistd.h>
|
||||
#include "aio.h"
|
||||
#include "init.h"
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include <aio.h>
|
||||
#include <init.h>
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
|
||||
struct aio_thread_req {
|
||||
enum aio_type type;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#ifndef __DRIVERS_ETAP_H
|
||||
#define __DRIVERS_ETAP_H
|
||||
|
||||
#include "net_user.h"
|
||||
#include <net_user.h>
|
||||
|
||||
struct ethertap_data {
|
||||
char *dev_name;
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include "etap.h"
|
||||
#include "net_kern.h"
|
||||
#include <net_kern.h>
|
||||
|
||||
struct ethertap_init {
|
||||
char *dev_name;
|
||||
|
@@ -13,9 +13,9 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include "etap.h"
|
||||
#include "os.h"
|
||||
#include "net_user.h"
|
||||
#include "um_malloc.h"
|
||||
#include <os.h>
|
||||
#include <net_user.h>
|
||||
#include <um_malloc.h>
|
||||
|
||||
#define MAX_PACKET ETH_MAX_PACKET
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#ifndef __UM_TUNTAP_H
|
||||
#define __UM_TUNTAP_H
|
||||
|
||||
#include "net_user.h"
|
||||
#include <net_user.h>
|
||||
|
||||
struct tuntap_data {
|
||||
char *dev_name;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <asm/errno.h>
|
||||
#include "net_kern.h"
|
||||
#include <net_kern.h>
|
||||
#include "tuntap.h"
|
||||
|
||||
struct tuntap_init {
|
||||
|
@@ -13,8 +13,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/uio.h>
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
#include "tuntap.h"
|
||||
|
||||
static int tuntap_user_init(void *data, void *dev)
|
||||
|
@@ -9,9 +9,9 @@
|
||||
*/
|
||||
#include <elf.h>
|
||||
#include <stddef.h>
|
||||
#include "init.h"
|
||||
#include "elf_user.h"
|
||||
#include "mem_user.h"
|
||||
#include <init.h>
|
||||
#include <elf_user.h>
|
||||
#include <mem_user.h>
|
||||
|
||||
typedef Elf32_auxv_t elf_auxv_t;
|
||||
|
||||
|
@@ -27,12 +27,12 @@
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef TEST
|
||||
#include "um_malloc.h"
|
||||
#include <um_malloc.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#define um_kmalloc malloc
|
||||
#endif
|
||||
#include "os.h"
|
||||
#include <os.h>
|
||||
|
||||
/* Execute FILE, searching in the `PATH' environment variable if it contains
|
||||
no slashes, with arguments ARGV and environment from `environ'. */
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/un.h>
|
||||
#include "os.h"
|
||||
#include <os.h>
|
||||
|
||||
static void copy_stat(struct uml_stat *dst, const struct stat64 *src)
|
||||
{
|
||||
|
@@ -10,9 +10,9 @@
|
||||
#include <linux/limits.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
#include <um_malloc.h>
|
||||
|
||||
struct helper_data {
|
||||
void (*pre_exec)(void*);
|
||||
|
@@ -8,9 +8,9 @@
|
||||
#include <poll.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include "irq_user.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include <irq_user.h>
|
||||
#include <os.h>
|
||||
#include <um_malloc.h>
|
||||
|
||||
/*
|
||||
* Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd
|
||||
|
@@ -10,11 +10,11 @@
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <sys/resource.h>
|
||||
#include "as-layout.h"
|
||||
#include "init.h"
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include <as-layout.h>
|
||||
#include <init.h>
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
#include <um_malloc.h>
|
||||
|
||||
#define PGD_BOUND (4 * 1024 * 1024)
|
||||
#define STACKSIZE (8 * 1024 * 1024)
|
||||
|
@@ -13,8 +13,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/param.h>
|
||||
#include "init.h"
|
||||
#include "os.h"
|
||||
#include <init.h>
|
||||
#include <os.h>
|
||||
|
||||
/* Modified by which_tmpdir, which is called during early boot */
|
||||
static char *default_tmpdir = "/tmp";
|
||||
|
@@ -12,10 +12,10 @@
|
||||
#include <sys/ptrace.h>
|
||||
#include <sys/wait.h>
|
||||
#include <asm/unistd.h>
|
||||
#include "init.h"
|
||||
#include "longjmp.h"
|
||||
#include "os.h"
|
||||
#include "skas_ptrace.h"
|
||||
#include <init.h>
|
||||
#include <longjmp.h>
|
||||
#include <os.h>
|
||||
#include <skas_ptrace.h>
|
||||
|
||||
#define ARBITRARY_ADDR -1
|
||||
#define FAILURE_PID -1
|
||||
|
@@ -7,9 +7,9 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include "sysdep/ptrace.h"
|
||||
#include "sysdep/ptrace_user.h"
|
||||
#include "registers.h"
|
||||
#include <sysdep/ptrace.h>
|
||||
#include <sysdep/ptrace_user.h>
|
||||
#include <registers.h>
|
||||
|
||||
int save_registers(int pid, struct uml_pt_regs *regs)
|
||||
{
|
||||
|
@@ -11,11 +11,11 @@
|
||||
#include <sched.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include "kern_util.h"
|
||||
#include "init.h"
|
||||
#include "os.h"
|
||||
#include "sigio.h"
|
||||
#include "um_malloc.h"
|
||||
#include <kern_util.h>
|
||||
#include <init.h>
|
||||
#include <os.h>
|
||||
#include <sigio.h>
|
||||
#include <um_malloc.h>
|
||||
|
||||
/*
|
||||
* Protected by sigio_lock(), also used by sigio_cleanup, which is an
|
||||
|
@@ -9,10 +9,10 @@
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <strings.h>
|
||||
#include "as-layout.h"
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include "sysdep/mcontext.h"
|
||||
#include <as-layout.h>
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
#include <sysdep/mcontext.h>
|
||||
#include "internal.h"
|
||||
|
||||
void (*sig_info[NSIG])(int, siginfo_t *, struct uml_pt_regs *) = {
|
||||
|
@@ -8,16 +8,16 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#include "init.h"
|
||||
#include "as-layout.h"
|
||||
#include "mm_id.h"
|
||||
#include "os.h"
|
||||
#include "proc_mm.h"
|
||||
#include "ptrace_user.h"
|
||||
#include "registers.h"
|
||||
#include "skas.h"
|
||||
#include "sysdep/ptrace.h"
|
||||
#include "sysdep/stub.h"
|
||||
#include <init.h>
|
||||
#include <as-layout.h>
|
||||
#include <mm_id.h>
|
||||
#include <os.h>
|
||||
#include <proc_mm.h>
|
||||
#include <ptrace_user.h>
|
||||
#include <registers.h>
|
||||
#include <skas.h>
|
||||
#include <sysdep/ptrace.h>
|
||||
#include <sysdep/stub.h>
|
||||
|
||||
extern unsigned long batch_syscall_stub, __syscall_stub_start;
|
||||
|
||||
|
@@ -11,17 +11,17 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/wait.h>
|
||||
#include <asm/unistd.h>
|
||||
#include "as-layout.h"
|
||||
#include "init.h"
|
||||
#include "kern_util.h"
|
||||
#include "mem.h"
|
||||
#include "os.h"
|
||||
#include "proc_mm.h"
|
||||
#include "ptrace_user.h"
|
||||
#include "registers.h"
|
||||
#include "skas.h"
|
||||
#include "skas_ptrace.h"
|
||||
#include "sysdep/stub.h"
|
||||
#include <as-layout.h>
|
||||
#include <init.h>
|
||||
#include <kern_util.h>
|
||||
#include <mem.h>
|
||||
#include <os.h>
|
||||
#include <proc_mm.h>
|
||||
#include <ptrace_user.h>
|
||||
#include <registers.h>
|
||||
#include <skas.h>
|
||||
#include <skas_ptrace.h>
|
||||
#include <sysdep/stub.h>
|
||||
|
||||
int is_skas_winch(int pid, int fd, void *data)
|
||||
{
|
||||
|
@@ -16,13 +16,13 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <asm/unistd.h>
|
||||
#include "init.h"
|
||||
#include "os.h"
|
||||
#include "mem_user.h"
|
||||
#include "ptrace_user.h"
|
||||
#include "registers.h"
|
||||
#include "skas.h"
|
||||
#include "skas_ptrace.h"
|
||||
#include <init.h>
|
||||
#include <os.h>
|
||||
#include <mem_user.h>
|
||||
#include <ptrace_user.h>
|
||||
#include <registers.h>
|
||||
#include <skas.h>
|
||||
#include <skas_ptrace.h>
|
||||
|
||||
static void ptrace_child(void)
|
||||
{
|
||||
|
@@ -8,8 +8,8 @@
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
#include "internal.h"
|
||||
|
||||
int set_interval(void)
|
||||
|
@@ -7,8 +7,8 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include <kern_util.h>
|
||||
#include <os.h>
|
||||
|
||||
struct grantpt_info {
|
||||
int fd;
|
||||
|
@@ -12,8 +12,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include "init.h"
|
||||
#include "os.h"
|
||||
#include <init.h>
|
||||
#include <os.h>
|
||||
|
||||
#define UML_DIR "~/.uml/"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "linux/types.h"
|
||||
#include "linux/module.h"
|
||||
#include <linux/types.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
/* Some of this are builtin function (some are not but could in the future),
|
||||
* so I *must* declare good prototypes for them and then EXPORT them.
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include <wait.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/utsname.h>
|
||||
#include "os.h"
|
||||
#include <os.h>
|
||||
|
||||
void stack_protections(unsigned long address)
|
||||
{
|
||||
|
新增問題並參考
封鎖使用者