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)
...
@@ -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
* 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)
...
@@ -1795,7 +1795,7 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
break
;
break
;
}
}
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
break
;
/* Routing */
/* Routing */
case
SIOCADDRT
:
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)
...
@@ -1694,7 +1694,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
{
if
(
sk
!=
NULL
)
{
res
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
res
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
break
;
}
}
res
=
-
EINVAL
;
res
=
-
EINVAL
;
...
...
net/core/sock.c
View file @
c773633f
...
@@ -1172,7 +1172,7 @@ EXPORT_SYMBOL(release_sock);
...
@@ -1172,7 +1172,7 @@ EXPORT_SYMBOL(release_sock);
/* When > 0 there are consumers of rx skb time stamps */
/* When > 0 there are consumers of rx skb time stamps */
atomic_t
netstamp_needed
=
ATOMIC_INIT
(
0
);
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
))
if
(
!
sock_flag
(
sk
,
SOCK_TIMESTAMP
))
sock_enable_timestamp
(
sk
);
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
...
@@ -665,7 +665,7 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,(
struct
timeval
__user
*
)
arg
);
case
SIOCSIFADDR
:
case
SIOCSIFADDR
:
case
SIOCGIFADDR
:
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)
...
@@ -843,7 +843,7 @@ int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
switch
(
cmd
)
{
switch
(
cmd
)
{
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
err
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
err
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
break
;
case
SIOCADDRT
:
case
SIOCADDRT
:
case
SIOCDELRT
:
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)
...
@@ -474,7 +474,7 @@ int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
switch
(
cmd
)
switch
(
cmd
)
{
{
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
case
SIOCADDRT
:
case
SIOCADDRT
:
case
SIOCDELRT
:
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)
...
@@ -1872,7 +1872,7 @@ static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
rc
=
-
EINVAL
;
rc
=
-
EINVAL
;
if
(
sk
)
if
(
sk
)
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
break
;
break
;
case
SIOCGIFDSTADDR
:
case
SIOCGIFDSTADDR
:
case
SIOCSIFDSTADDR
:
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)
...
@@ -1797,7 +1797,7 @@ static int irda_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
if
(
sk
!=
NULL
)
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
return
-
EINVAL
;
return
-
EINVAL
;
case
SIOCGIFADDR
:
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)
...
@@ -1202,7 +1202,7 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
ret
=
-
EINVAL
;
ret
=
-
EINVAL
;
if
(
sk
!=
NULL
)
if
(
sk
!=
NULL
)
ret
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
ret
=
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
release_sock
(
sk
);
release_sock
(
sk
);
return
ret
;
return
ret
;
...
...
net/packet/af_packet.c
View file @
c773633f
...
@@ -1465,7 +1465,7 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
...
@@ -1465,7 +1465,7 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
return
put_user
(
amount
,
(
int
*
)
arg
);
return
put_user
(
amount
,
(
int
*
)
arg
);
}
}
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
#ifdef CONFIG_INET
#ifdef CONFIG_INET
case
SIOCADDRT
:
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)
...
@@ -1270,7 +1270,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
if
(
sk
!=
NULL
)
if
(
sk
!=
NULL
)
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
return
-
EINVAL
;
return
-
EINVAL
;
case
SIOCGIFADDR
:
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
...
@@ -1765,7 +1765,7 @@ static int wanpipe_ioctl(struct socket *sock, unsigned int cmd, unsigned long ar
switch
(
cmd
)
switch
(
cmd
)
{
{
case
SIOCGSTAMP
:
case
SIOCGSTAMP
:
return
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
return
sock_get_timestamp
(
sk
,
(
struct
timeval
__user
*
)
arg
);
case
SIOC_WANPIPE_CHECK_TX
:
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)
...
@@ -1209,7 +1209,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
rc
=
-
EINVAL
;
rc
=
-
EINVAL
;
if
(
sk
)
if
(
sk
)
rc
=
sock_get_timestamp
(
sk
,
rc
=
sock_get_timestamp
(
sk
,
(
struct
timeval
*
)
arg
);
(
struct
timeval
__user
*
)
arg
);
break
;
break
;
case
SIOCGIFADDR
:
case
SIOCGIFADDR
:
case
SIOCSIFADDR
:
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