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
c773633f
Commit
c773633f
authored
May 29, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add __user annotations to sock_get_timestamp()
parent
5140ba66
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
14 additions
and
14 deletions
+14
-14
include/net/sock.h
include/net/sock.h
+1
-1
net/appletalk/ddp.c
net/appletalk/ddp.c
+1
-1
net/ax25/af_ax25.c
net/ax25/af_ax25.c
+1
-1
net/core/sock.c
net/core/sock.c
+1
-1
net/econet/af_econet.c
net/econet/af_econet.c
+1
-1
net/ipv4/af_inet.c
net/ipv4/af_inet.c
+1
-1
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+1
-1
net/ipx/af_ipx.c
net/ipx/af_ipx.c
+1
-1
net/irda/af_irda.c
net/irda/af_irda.c
+1
-1
net/netrom/af_netrom.c
net/netrom/af_netrom.c
+1
-1
net/packet/af_packet.c
net/packet/af_packet.c
+1
-1
net/rose/af_rose.c
net/rose/af_rose.c
+1
-1
net/wanrouter/af_wanpipe.c
net/wanrouter/af_wanpipe.c
+1
-1
net/x25/af_x25.c
net/x25/af_x25.c
+1
-1
No files found.
include/net/sock.h
View file @
c773633f
...
...
@@ -1049,7 +1049,7 @@ static inline void net_timestamp(struct timeval *stamp)
}
}
extern
int
sock_get_timestamp
(
struct
sock
*
,
struct
timeval
*
);
extern
int
sock_get_timestamp
(
struct
sock
*
,
struct
timeval
__user
*
);
/*
* Enable debug/info messages
...
...
net/appletalk/ddp.c
View file @
c773633f
...
...
@@ -1795,7 +1795,7 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
break
;
}
case
SIOCGSTAMP
:
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
/* Routing */
case
SIOCADDRT
:
...
...
net/ax25/af_ax25.c
View file @
c773633f
...
...
@@ -1694,7 +1694,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
{
res
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
res
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
}
res
=
-
EINVAL
;
...
...
net/core/sock.c
View file @
c773633f
...
...
@@ -1172,7 +1172,7 @@ EXPORT_SYMBOL(release_sock);
/* When > 0 there are consumers of rx skb time stamps */
atomic_t
netstamp_needed
=
ATOMIC_INIT
(
0
);
int
sock_get_timestamp
(
struct
sock
*
sk
,
struct
timeval
*
userstamp
)
int
sock_get_timestamp
(
struct
sock
*
sk
,
struct
timeval
__user
*
userstamp
)
{
if
(
!
sock_flag
(
sk
,
SOCK_TIMESTAMP
))
sock_enable_timestamp
(
sk
);
...
...
net/econet/af_econet.c
View file @
c773633f
...
...
@@ -665,7 +665,7 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg
switch
(
cmd
)
{
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,(
struct
timeval
__user
*
)
arg
);
case
SIOCSIFADDR
:
case
SIOCGIFADDR
:
...
...
net/ipv4/af_inet.c
View file @
c773633f
...
...
@@ -843,7 +843,7 @@ int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
switch
(
cmd
)
{
case
SIOCGSTAMP
:
err
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
err
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
case
SIOCADDRT
:
case
SIOCDELRT
:
...
...
net/ipv6/af_inet6.c
View file @
c773633f
...
...
@@ -474,7 +474,7 @@ int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
switch
(
cmd
)
{
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
case
SIOCADDRT
:
case
SIOCDELRT
:
...
...
net/ipx/af_ipx.c
View file @
c773633f
...
...
@@ -1872,7 +1872,7 @@ static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
rc
=
-
EINVAL
;
if
(
sk
)
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
case
SIOCGIFDSTADDR
:
case
SIOCSIFDSTADDR
:
...
...
net/irda/af_irda.c
View file @
c773633f
...
...
@@ -1797,7 +1797,7 @@ static int irda_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
return
-
EINVAL
;
case
SIOCGIFADDR
:
...
...
net/netrom/af_netrom.c
View file @
c773633f
...
...
@@ -1202,7 +1202,7 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
ret
=
-
EINVAL
;
if
(
sk
!=
NULL
)
ret
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
ret
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
release_sock
(
sk
);
return
ret
;
...
...
net/packet/af_packet.c
View file @
c773633f
...
...
@@ -1465,7 +1465,7 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
return
put_user
(
amount
,
(
int
*
)
arg
);
}
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
#ifdef CONFIG_INET
case
SIOCADDRT
:
...
...
net/rose/af_rose.c
View file @
c773633f
...
...
@@ -1270,7 +1270,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
return
-
EINVAL
;
case
SIOCGIFADDR
:
...
...
net/wanrouter/af_wanpipe.c
View file @
c773633f
...
...
@@ -1765,7 +1765,7 @@ static int wanpipe_ioctl(struct socket *sock, unsigned int cmd, unsigned long ar
switch
(
cmd
)
{
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
case
SIOC_WANPIPE_CHECK_TX
:
...
...
net/x25/af_x25.c
View file @
c773633f
...
...
@@ -1209,7 +1209,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
rc
=
-
EINVAL
;
if
(
sk
)
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
(
struct
timeval
__user
*
)
arg
);
break
;
case
SIOCGIFADDR
:
case
SIOCSIFADDR
:
...
...
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