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
Kirill Smelkov
linux
Commits
275f469e
Commit
275f469e
authored
Jun 14, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Update sys32_settimeofday for do_settimeofday() changes.
parent
0f7923d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+17
-4
No files found.
arch/sparc64/kernel/sys_sparc32.c
View file @
275f469e
...
...
@@ -2312,7 +2312,6 @@ int asmlinkage sys32_nfsservctl(int cmd, void *notused, void *notused2)
sorts of things, like timeval and itimerval. */
extern
struct
timezone
sys_tz
;
extern
int
do_sys_settimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
);
asmlinkage
int
sys32_gettimeofday
(
struct
compat_timeval
*
tv
,
struct
timezone
*
tz
)
{
...
...
@@ -2329,13 +2328,27 @@ asmlinkage int sys32_gettimeofday(struct compat_timeval *tv, struct timezone *tz
return
0
;
}
static
inline
long
get_ts32
(
struct
timespec
*
o
,
struct
compat_timeval
*
i
)
{
long
usec
;
if
(
!
access_ok
(
VERIFY_READ
,
i
,
sizeof
(
*
i
)))
return
-
EFAULT
;
if
(
__get_user
(
o
->
tv_sec
,
&
i
->
tv_sec
))
return
-
EFAULT
;
if
(
__get_user
(
usec
,
&
i
->
tv_usec
))
return
-
EFAULT
;
o
->
tv_nsec
=
usec
*
1000
;
return
0
;
}
asmlinkage
int
sys32_settimeofday
(
struct
compat_timeval
*
tv
,
struct
timezone
*
tz
)
{
struct
time
val
ktv
;
struct
time
spec
kts
;
struct
timezone
ktz
;
if
(
tv
)
{
if
(
get_t
v32
(
&
ktv
,
tv
))
if
(
get_t
s32
(
&
kts
,
tv
))
return
-
EFAULT
;
}
if
(
tz
)
{
...
...
@@ -2343,7 +2356,7 @@ asmlinkage int sys32_settimeofday(struct compat_timeval *tv, struct timezone *tz
return
-
EFAULT
;
}
return
do_sys_settimeofday
(
tv
?
&
kt
v
:
NULL
,
tz
?
&
ktz
:
NULL
);
return
do_sys_settimeofday
(
tv
?
&
kt
s
:
NULL
,
tz
?
&
ktz
:
NULL
);
}
asmlinkage
int
sys32_utimes
(
char
*
filename
,
struct
compat_timeval
*
tvs
)
...
...
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