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
97309749
Commit
97309749
authored
Aug 13, 2003
by
Andi Kleen
Committed by
Linus Torvalds
Aug 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add compat_utimes
Add compat_sys_utimes for 32bit->64bit utimes conversion
parent
91a8b0c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
fs/compat.c
fs/compat.c
+13
-0
No files found.
fs/compat.c
View file @
97309749
...
@@ -53,6 +53,19 @@ asmlinkage long compat_sys_utime(char *filename, struct compat_utimbuf *t)
...
@@ -53,6 +53,19 @@ asmlinkage long compat_sys_utime(char *filename, struct compat_utimbuf *t)
return
do_utimes
(
filename
,
t
?
tv
:
NULL
);
return
do_utimes
(
filename
,
t
?
tv
:
NULL
);
}
}
asmlinkage
long
compat_sys_utimes
(
char
*
filename
,
struct
compat_timeval
*
t
)
{
struct
timeval
tv
[
2
];
if
(
t
)
{
if
(
get_user
(
tv
[
0
].
tv_sec
,
&
t
[
0
].
tv_sec
)
||
get_user
(
tv
[
0
].
tv_usec
,
&
t
[
0
].
tv_usec
)
||
get_user
(
tv
[
1
].
tv_sec
,
&
t
[
1
].
tv_sec
)
||
get_user
(
tv
[
1
].
tv_usec
,
&
t
[
1
].
tv_usec
))
return
-
EFAULT
;
}
return
do_utimes
(
filename
,
t
?
tv
:
NULL
);
}
asmlinkage
long
compat_sys_newstat
(
char
*
filename
,
asmlinkage
long
compat_sys_newstat
(
char
*
filename
,
struct
compat_stat
*
statbuf
)
struct
compat_stat
*
statbuf
)
...
...
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