Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c3efef68
Commit
c3efef68
authored
Oct 25, 2004
by
Christoph Hellwig
Committed by
David S. Miller
Oct 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Remove dead socket layer exports.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
f380f123
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
23 deletions
+10
-23
include/linux/net.h
include/linux/net.h
+0
-1
include/net/sock.h
include/net/sock.h
+0
-2
net/core/sock.c
net/core/sock.c
+9
-17
net/socket.c
net/socket.c
+1
-3
No files found.
include/linux/net.h
View file @
c3efef68
...
@@ -176,7 +176,6 @@ struct kvec;
...
@@ -176,7 +176,6 @@ struct kvec;
extern
int
sock_wake_async
(
struct
socket
*
sk
,
int
how
,
int
band
);
extern
int
sock_wake_async
(
struct
socket
*
sk
,
int
how
,
int
band
);
extern
int
sock_register
(
struct
net_proto_family
*
fam
);
extern
int
sock_register
(
struct
net_proto_family
*
fam
);
extern
int
sock_unregister
(
int
family
);
extern
int
sock_unregister
(
int
family
);
extern
struct
socket
*
sock_alloc
(
void
);
extern
int
sock_create
(
int
family
,
int
type
,
int
proto
,
extern
int
sock_create
(
int
family
,
int
type
,
int
proto
,
struct
socket
**
res
);
struct
socket
**
res
);
extern
int
sock_create_kern
(
int
family
,
int
type
,
int
proto
,
extern
int
sock_create_kern
(
int
family
,
int
type
,
int
proto
,
...
...
include/net/sock.h
View file @
c3efef68
...
@@ -746,7 +746,6 @@ extern void sk_send_sigurg(struct sock *sk);
...
@@ -746,7 +746,6 @@ extern void sk_send_sigurg(struct sock *sk);
* Functions to fill in entries in struct proto_ops when a protocol
* Functions to fill in entries in struct proto_ops when a protocol
* does not implement a particular function.
* does not implement a particular function.
*/
*/
extern
int
sock_no_release
(
struct
socket
*
);
extern
int
sock_no_bind
(
struct
socket
*
,
extern
int
sock_no_bind
(
struct
socket
*
,
struct
sockaddr
*
,
int
);
struct
sockaddr
*
,
int
);
extern
int
sock_no_connect
(
struct
socket
*
,
extern
int
sock_no_connect
(
struct
socket
*
,
...
@@ -1275,7 +1274,6 @@ static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
...
@@ -1275,7 +1274,6 @@ static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
extern
atomic_t
netstamp_needed
;
extern
atomic_t
netstamp_needed
;
extern
void
sock_enable_timestamp
(
struct
sock
*
sk
);
extern
void
sock_enable_timestamp
(
struct
sock
*
sk
);
extern
void
sock_disable_timestamp
(
struct
sock
*
sk
);
static
inline
void
net_timestamp
(
struct
timeval
*
stamp
)
static
inline
void
net_timestamp
(
struct
timeval
*
stamp
)
{
{
...
...
net/core/sock.c
View file @
c3efef68
...
@@ -175,6 +175,15 @@ static void sock_warn_obsolete_bsdism(const char *name)
...
@@ -175,6 +175,15 @@ static void sock_warn_obsolete_bsdism(const char *name)
}
}
}
}
static
void
sock_disable_timestamp
(
struct
sock
*
sk
)
{
if
(
sock_flag
(
sk
,
SOCK_TIMESTAMP
))
{
sock_reset_flag
(
sk
,
SOCK_TIMESTAMP
);
atomic_dec
(
&
netstamp_needed
);
}
}
/*
/*
* This is meant for all protocols to use and covers goings on
* This is meant for all protocols to use and covers goings on
* at the socket level. Everything here is generic.
* at the socket level. Everything here is generic.
...
@@ -972,11 +981,6 @@ EXPORT_SYMBOL(sk_wait_data);
...
@@ -972,11 +981,6 @@ EXPORT_SYMBOL(sk_wait_data);
* function, some default processing is provided.
* function, some default processing is provided.
*/
*/
int
sock_no_release
(
struct
socket
*
sock
)
{
return
0
;
}
int
sock_no_bind
(
struct
socket
*
sock
,
struct
sockaddr
*
saddr
,
int
len
)
int
sock_no_bind
(
struct
socket
*
sock
,
struct
sockaddr
*
saddr
,
int
len
)
{
{
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
...
@@ -1247,15 +1251,6 @@ void sock_enable_timestamp(struct sock *sk)
...
@@ -1247,15 +1251,6 @@ void sock_enable_timestamp(struct sock *sk)
}
}
EXPORT_SYMBOL
(
sock_enable_timestamp
);
EXPORT_SYMBOL
(
sock_enable_timestamp
);
void
sock_disable_timestamp
(
struct
sock
*
sk
)
{
if
(
sock_flag
(
sk
,
SOCK_TIMESTAMP
))
{
sock_reset_flag
(
sk
,
SOCK_TIMESTAMP
);
atomic_dec
(
&
netstamp_needed
);
}
}
EXPORT_SYMBOL
(
sock_disable_timestamp
);
/*
/*
* Get a socket option on an socket.
* Get a socket option on an socket.
*
*
...
@@ -1371,7 +1366,6 @@ EXPORT_SYMBOL(sk_free);
...
@@ -1371,7 +1366,6 @@ EXPORT_SYMBOL(sk_free);
EXPORT_SYMBOL
(
sk_send_sigurg
);
EXPORT_SYMBOL
(
sk_send_sigurg
);
EXPORT_SYMBOL
(
sock_alloc_send_pskb
);
EXPORT_SYMBOL
(
sock_alloc_send_pskb
);
EXPORT_SYMBOL
(
sock_alloc_send_skb
);
EXPORT_SYMBOL
(
sock_alloc_send_skb
);
EXPORT_SYMBOL
(
sock_getsockopt
);
EXPORT_SYMBOL
(
sock_init_data
);
EXPORT_SYMBOL
(
sock_init_data
);
EXPORT_SYMBOL
(
sock_kfree_s
);
EXPORT_SYMBOL
(
sock_kfree_s
);
EXPORT_SYMBOL
(
sock_kmalloc
);
EXPORT_SYMBOL
(
sock_kmalloc
);
...
@@ -1385,14 +1379,12 @@ EXPORT_SYMBOL(sock_no_listen);
...
@@ -1385,14 +1379,12 @@ EXPORT_SYMBOL(sock_no_listen);
EXPORT_SYMBOL
(
sock_no_mmap
);
EXPORT_SYMBOL
(
sock_no_mmap
);
EXPORT_SYMBOL
(
sock_no_poll
);
EXPORT_SYMBOL
(
sock_no_poll
);
EXPORT_SYMBOL
(
sock_no_recvmsg
);
EXPORT_SYMBOL
(
sock_no_recvmsg
);
EXPORT_SYMBOL
(
sock_no_release
);
EXPORT_SYMBOL
(
sock_no_sendmsg
);
EXPORT_SYMBOL
(
sock_no_sendmsg
);
EXPORT_SYMBOL
(
sock_no_sendpage
);
EXPORT_SYMBOL
(
sock_no_sendpage
);
EXPORT_SYMBOL
(
sock_no_setsockopt
);
EXPORT_SYMBOL
(
sock_no_setsockopt
);
EXPORT_SYMBOL
(
sock_no_shutdown
);
EXPORT_SYMBOL
(
sock_no_shutdown
);
EXPORT_SYMBOL
(
sock_no_socketpair
);
EXPORT_SYMBOL
(
sock_no_socketpair
);
EXPORT_SYMBOL
(
sock_rfree
);
EXPORT_SYMBOL
(
sock_rfree
);
EXPORT_SYMBOL
(
sock_rmalloc
);
EXPORT_SYMBOL
(
sock_setsockopt
);
EXPORT_SYMBOL
(
sock_setsockopt
);
EXPORT_SYMBOL
(
sock_wfree
);
EXPORT_SYMBOL
(
sock_wfree
);
EXPORT_SYMBOL
(
sock_wmalloc
);
EXPORT_SYMBOL
(
sock_wmalloc
);
...
...
net/socket.c
View file @
c3efef68
...
@@ -459,7 +459,7 @@ struct socket *sockfd_lookup(int fd, int *err)
...
@@ -459,7 +459,7 @@ struct socket *sockfd_lookup(int fd, int *err)
* NULL is returned.
* NULL is returned.
*/
*/
struct
socket
*
sock_alloc
(
void
)
st
atic
st
ruct
socket
*
sock_alloc
(
void
)
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
struct
socket
*
sock
;
struct
socket
*
sock
;
...
@@ -2089,8 +2089,6 @@ void socket_seq_show(struct seq_file *seq)
...
@@ -2089,8 +2089,6 @@ void socket_seq_show(struct seq_file *seq)
/* ABI emulation layers need these two */
/* ABI emulation layers need these two */
EXPORT_SYMBOL
(
move_addr_to_kernel
);
EXPORT_SYMBOL
(
move_addr_to_kernel
);
EXPORT_SYMBOL
(
move_addr_to_user
);
EXPORT_SYMBOL
(
move_addr_to_user
);
EXPORT_SYMBOL
(
sock_alloc
);
EXPORT_SYMBOL
(
sock_alloc_inode
);
EXPORT_SYMBOL
(
sock_create
);
EXPORT_SYMBOL
(
sock_create
);
EXPORT_SYMBOL
(
sock_create_kern
);
EXPORT_SYMBOL
(
sock_create_kern
);
EXPORT_SYMBOL
(
sock_create_lite
);
EXPORT_SYMBOL
(
sock_create_lite
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment