um: -include user.h for USER_OBJ, trim includes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
committed by
Richard Weinberger
parent
4de1c5f65c
commit
078073a3d4
@ -11,10 +11,8 @@
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
void generic_close(int fd, void *unused)
|
||||
{
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
#include "user.h"
|
||||
#include "um_malloc.h"
|
||||
|
||||
static inline void *cow_malloc(int size)
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "net_user.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
enum request_type { REQ_NEW_CONTROL };
|
||||
|
||||
|
@ -9,10 +9,8 @@
|
||||
#include <errno.h>
|
||||
#include <termios.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
struct fd_chan {
|
||||
int fd;
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include "os.h"
|
||||
#include "user.h"
|
||||
|
||||
struct dog_data {
|
||||
int stdin;
|
||||
|
@ -10,9 +10,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/un.h>
|
||||
#include "kern_constants.h"
|
||||
#include "mconsole.h"
|
||||
#include "user.h"
|
||||
|
||||
static struct mconsole_command commands[] = {
|
||||
/*
|
||||
|
@ -12,10 +12,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include "net_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
int tap_open_common(void *dev, char *gate_addr)
|
||||
{
|
||||
|
@ -9,9 +9,7 @@
|
||||
#include <asm/types.h>
|
||||
#include "net_user.h"
|
||||
#include "pcap_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
#define PCAP_FD(p) (*(int *)(p))
|
||||
|
||||
|
@ -10,11 +10,9 @@
|
||||
#include <unistd.h>
|
||||
#include <netinet/in.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "port.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
struct port_chan {
|
||||
int raw;
|
||||
|
@ -12,10 +12,8 @@
|
||||
#include <termios.h>
|
||||
#include <sys/stat.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
struct pty_chan {
|
||||
void (*announce)(char *dev_name, int dev);
|
||||
|
@ -11,12 +11,10 @@
|
||||
#include <string.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/wait.h>
|
||||
#include "kern_constants.h"
|
||||
#include "net_user.h"
|
||||
#include "os.h"
|
||||
#include "slip.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
static int slip_user_init(void *data, void *dev)
|
||||
{
|
||||
|
@ -7,11 +7,9 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/wait.h>
|
||||
#include "kern_constants.h"
|
||||
#include "net_user.h"
|
||||
#include "os.h"
|
||||
#include "slirp.h"
|
||||
#include "user.h"
|
||||
|
||||
static int slirp_user_init(void *data, void *dev)
|
||||
{
|
||||
|
@ -7,10 +7,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
struct tty_chan {
|
||||
char *dev;
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/param.h>
|
||||
#include "asm/types.h"
|
||||
#include "user.h"
|
||||
#include "ubd_user.h"
|
||||
#include "os.h"
|
||||
#include "cow.h"
|
||||
|
@ -15,11 +15,9 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <netinet/in.h>
|
||||
#include "kern_constants.h"
|
||||
#include "umcast.h"
|
||||
#include "net_user.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
|
||||
static struct sockaddr_in *new_addr(char *addr, unsigned short port)
|
||||
{
|
||||
|
@ -6,10 +6,8 @@
|
||||
#include <stddef.h>
|
||||
#include <errno.h>
|
||||
#include <libvdeplug.h>
|
||||
#include "kern_constants.h"
|
||||
#include "net_user.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
#include "vde.h"
|
||||
|
||||
static int vde_user_init(void *data, void *dev)
|
||||
|
@ -11,10 +11,8 @@
|
||||
#include <string.h>
|
||||
#include <termios.h>
|
||||
#include "chan_user.h"
|
||||
#include "kern_constants.h"
|
||||
#include "os.h"
|
||||
#include "um_malloc.h"
|
||||
#include "user.h"
|
||||
#include "xterm.h"
|
||||
|
||||
struct xterm_chan {
|
||||
|
Reference in New Issue
Block a user