aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/socket.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-10-19 15:19:19 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-10-19 15:19:19 -0400
commite05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch)
tree31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/socket.h
parent3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff)
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits) Linux 3.7-rc1 x86, boot: Explicitly include autoconf.h for hostprogs perf: Fix UAPI fallout ARM: config: make sure that platforms are ordered by option string ARM: config: sort select statements alphanumerically UAPI: (Scripted) Disintegrate include/linux/byteorder UAPI: (Scripted) Disintegrate include/linux UAPI: Unexport linux/blk_types.h UAPI: Unexport part of linux/ppp-comp.h perf: Handle new rbtree implementation procfs: don't need a PATH_MAX allocation to hold a string representation of an int vfs: embed struct filename inside of names_cache allocation if possible audit: make audit_inode take struct filename vfs: make path_openat take a struct filename pointer vfs: turn do_path_lookup into wrapper around struct filename variant audit: allow audit code to satisfy getname requests from its names_list vfs: define struct filename and have getname() return it btrfs: Fix compilation with user namespace support enabled userns: Fix posix_acl_file_xattr_userns gid conversion userns: Properly print bluetooth socket uids ...
Diffstat (limited to 'include/linux/socket.h')
-rw-r--r--include/linux/socket.h20
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
11typedef unsigned short __kernel_sa_family_t;
12
13struct __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
29struct pid; 12struct pid;
30struct cred; 13struct 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);
341extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, 324extern 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 */