Whamcloud - gitweb
file xnu_types.h was initially added on branch b_port_step.
[fs/lustre-release.git] / lustre / kernel_patches / patches / socket-exports-2.4.22-rh.patch
1  include/linux/socket.h |    4 ++++
2  net/netsyms.c          |    1 +
3  net/socket.c           |    2 +-
4  3 files changed, 6 insertions(+), 1 deletion(-)
5
6 --- linux-2.4.22-ac1/include/linux/socket.h~socket-exports-2.4.22-rh    2003-06-13 18:51:39.000000000 +0400
7 +++ linux-2.4.22-ac1-alexey/include/linux/socket.h      2003-09-26 00:49:43.000000000 +0400
8 @@ -275,6 +275,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.22-ac1/net/netsyms.c~socket-exports-2.4.22-rh     2003-09-26 00:49:19.000000000 +0400
20 +++ linux-2.4.22-ac1-alexey/net/netsyms.c       2003-09-26 00:50:20.000000000 +0400
21 @@ -163,6 +163,7 @@ EXPORT_SYMBOL(put_cmsg);
22  EXPORT_SYMBOL(sock_kmalloc);
23  EXPORT_SYMBOL(sock_kfree_s);
24  EXPORT_SYMBOL(sockfd_lookup);
25 +EXPORT_SYMBOL(sock_map_fd);
26  
27  #ifdef CONFIG_FILTER
28  EXPORT_SYMBOL(sk_run_filter);
29 --- linux-2.4.22-ac1/net/socket.c~socket-exports-2.4.22-rh      2003-08-25 15:44:44.000000000 +0400
30 +++ linux-2.4.22-ac1-alexey/net/socket.c        2003-09-26 00:49:43.000000000 +0400
31 @@ -325,7 +325,7 @@ static struct dentry_operations sockfs_d
32   *     but we take care of internal coherence yet.
33   */
34  
35 -static int sock_map_fd(struct socket *sock)
36 +int sock_map_fd(struct socket *sock)
37  {
38         int fd;
39         struct qstr this;
40
41 _