Whamcloud - gitweb
adding 2.6-sles10 target and kernel config files for the sles10 kernel
[fs/lustre-release.git] / lustre / kernel_patches / patches / socket-exports-vanilla.patch
1  include/linux/socket.h |    4 ++++
2  net/netsyms.c          |    2 ++
3  net/socket.c           |    2 +-
4  3 files changed, 7 insertions(+), 1 deletion(-)
5
6 --- linux-2.4.20-l18/include/linux/socket.h~socket-exports-vanilla      Fri Aug 22 15:43:58 2003
7 +++ linux-2.4.20-l18-phil/include/linux/socket.h        Fri Aug 22 16:26:37 2003
8 @@ -260,6 +260,10 @@ extern void memcpy_tokerneliovec(struct 
9  extern int move_addr_to_user(void *kaddr, int klen, void *uaddr, int *ulen);
10  extern int move_addr_to_kernel(void *uaddr, int ulen, void *kaddr);
11  extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
12 +struct socket;
13 +extern int sock_map_fd(struct socket *sock);
14 +extern struct socket *sockfd_lookup(int fd, int *err);
15 +
16  #endif
17  #endif /* not kernel and not glibc */
18  #endif /* _LINUX_SOCKET_H */
19 --- linux-2.4.20-l18/net/netsyms.c~socket-exports-vanilla       Fri Aug 22 15:43:58 2003
20 +++ linux-2.4.20-l18-phil/net/netsyms.c Fri Aug 22 16:25:04 2003
21 @@ -159,6 +159,8 @@ EXPORT_SYMBOL(datagram_poll);
22  EXPORT_SYMBOL(put_cmsg);
23  EXPORT_SYMBOL(sock_kmalloc);
24  EXPORT_SYMBOL(sock_kfree_s);
25 +EXPORT_SYMBOL(sockfd_lookup);
26 +EXPORT_SYMBOL(sock_map_fd);
27  
28  #ifdef CONFIG_FILTER
29  EXPORT_SYMBOL(sk_run_filter);
30 --- linux-2.4.20-l18/net/socket.c~socket-exports-vanilla        Fri Aug 22 15:43:58 2003
31 +++ linux-2.4.20-l18-phil/net/socket.c  Fri Aug 22 16:25:04 2003
32 @@ -325,7 +325,7 @@ static struct dentry_operations sockfs_d
33   *     but we take care of internal coherence yet.
34   */
35  
36 -static int sock_map_fd(struct socket *sock)
37 +int sock_map_fd(struct socket *sock)
38  {
39         int fd;
40         struct qstr this;
41
42 _