diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:09:18 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:09:18 -0400 |
| commit | 68fe0f0a6dcd2ac1ace5da3647a6d1cf0f4d2fea (patch) | |
| tree | 69d855c2e46d42ef8f23680cf3a1e6ff38de9ef4 /include/linux/socket.h | |
| parent | 88fd449e734a4264347e12b8ff74ccb33a9b9a35 (diff) | |
| parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) | |
Merge tag 'v3.7-rc3' into for-linus to sync up with recent USB changes
Diffstat (limited to 'include/linux/socket.h')
| -rw-r--r-- | include/linux/socket.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index ba7b2e817cfa..9a546ff853dc 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h | |||
| @@ -1,30 +1,13 @@ | |||
| 1 | #ifndef _LINUX_SOCKET_H | 1 | #ifndef _LINUX_SOCKET_H |
| 2 | #define _LINUX_SOCKET_H | 2 | #define _LINUX_SOCKET_H |
| 3 | 3 | ||
| 4 | /* | ||
| 5 | * Desired design of maximum size and alignment (see RFC2553) | ||
| 6 | */ | ||
| 7 | #define _K_SS_MAXSIZE 128 /* Implementation specific max size */ | ||
| 8 | #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) | ||
| 9 | /* Implementation specific desired alignment */ | ||
| 10 | |||
| 11 | typedef unsigned short __kernel_sa_family_t; | ||
| 12 | |||
| 13 | struct __kernel_sockaddr_storage { | ||
| 14 | __kernel_sa_family_t ss_family; /* address family */ | ||
| 15 | /* Following field(s) are implementation specific */ | ||
| 16 | char __data[_K_SS_MAXSIZE - sizeof(unsigned short)]; | ||
| 17 | /* space to achieve desired size, */ | ||
| 18 | /* _SS_MAXSIZE value minus size of ss_family */ | ||
| 19 | } __attribute__ ((aligned(_K_SS_ALIGNSIZE))); /* force desired alignment */ | ||
| 20 | |||
| 21 | #ifdef __KERNEL__ | ||
| 22 | 4 | ||
| 23 | #include <asm/socket.h> /* arch-dependent defines */ | 5 | #include <asm/socket.h> /* arch-dependent defines */ |
| 24 | #include <linux/sockios.h> /* the SIOCxxx I/O controls */ | 6 | #include <linux/sockios.h> /* the SIOCxxx I/O controls */ |
| 25 | #include <linux/uio.h> /* iovec support */ | 7 | #include <linux/uio.h> /* iovec support */ |
| 26 | #include <linux/types.h> /* pid_t */ | 8 | #include <linux/types.h> /* pid_t */ |
| 27 | #include <linux/compiler.h> /* __user */ | 9 | #include <linux/compiler.h> /* __user */ |
| 10 | #include <uapi/linux/socket.h> | ||
| 28 | 11 | ||
| 29 | struct pid; | 12 | struct pid; |
| 30 | struct cred; | 13 | struct cred; |
| @@ -340,5 +323,4 @@ extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen | |||
| 340 | unsigned int flags, struct timespec *timeout); | 323 | unsigned int flags, struct timespec *timeout); |
| 341 | extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, | 324 | extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, |
| 342 | unsigned int vlen, unsigned int flags); | 325 | unsigned int vlen, unsigned int flags); |
| 343 | #endif /* not kernel and not glibc */ | ||
| 344 | #endif /* _LINUX_SOCKET_H */ | 326 | #endif /* _LINUX_SOCKET_H */ |
