X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fsocket.h;fp=include%2Flinux%2Fsocket.h;h=b02dda4ee83d113f6e4783ba02a68629593fe5d9;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=1de8ed1d4ecfd4de4f941549c61fb490f36938a2;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/linux/socket.h b/include/linux/socket.h index 1de8ed1d4..b02dda4ee 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -18,6 +18,8 @@ struct __kernel_sockaddr_storage { #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) +#include /* for CONFIG_COMPAT */ +#include #include /* arch-dependent defines */ #include /* the SIOCxxx I/O controls */ #include /* iovec support */ @@ -148,7 +150,6 @@ __KINLINE struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__ #define SCM_RIGHTS 0x01 /* rw: access rights (array of int) */ #define SCM_CREDENTIALS 0x02 /* rw: struct ucred */ -#define SCM_SECURITY 0x03 /* rw: security label */ struct ucred { __u32 pid; @@ -300,10 +301,6 @@ extern int move_addr_to_user(void *kaddr, int klen, void __user *uaddr, int __us extern int move_addr_to_kernel(void __user *uaddr, int ulen, void *kaddr); extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data); -struct socket; -extern int sock_map_fd(struct socket *sock); -extern struct socket *sockfd_lookup(int fd, int *err); - #endif #endif /* not kernel and not glibc */ #endif /* _LINUX_SOCKET_H */