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
d4e9cffa
Commit
d4e9cffa
authored
Jan 29, 2008
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] compat: handle argument endianess of sys32_(f)truncate64 with merge_64
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
0e8774b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
25 deletions
+5
-25
arch/mips/kernel/linux32.c
arch/mips/kernel/linux32.c
+5
-25
No files found.
arch/mips/kernel/linux32.c
View file @
d4e9cffa
...
@@ -174,36 +174,16 @@ struct rlimit32 {
...
@@ -174,36 +174,16 @@ struct rlimit32 {
int
rlim_max
;
int
rlim_max
;
};
};
#ifdef __MIPSEB__
asmlinkage
long
sys32_truncate64
(
const
char
__user
*
path
,
asmlinkage
long
sys32_truncate64
(
const
char
__user
*
path
,
unsigned
long
__dummy
,
unsigned
long
__dummy
,
int
a2
,
int
a3
)
int
length_hi
,
int
length_lo
)
#endif
#ifdef __MIPSEL__
asmlinkage
long
sys32_truncate64
(
const
char
__user
*
path
,
unsigned
long
__dummy
,
int
length_lo
,
int
length_hi
)
#endif
{
{
loff_t
length
;
return
sys_truncate
(
path
,
merge_64
(
a2
,
a3
));
length
=
((
unsigned
long
)
length_hi
<<
32
)
|
(
unsigned
int
)
length_lo
;
return
sys_truncate
(
path
,
length
);
}
}
#ifdef __MIPSEB__
asmlinkage
long
sys32_ftruncate64
(
unsigned
int
fd
,
unsigned
long
__dummy
,
asmlinkage
long
sys32_ftruncate64
(
unsigned
int
fd
,
unsigned
long
__dummy
,
int
length_hi
,
int
length_lo
)
int
a2
,
int
a3
)
#endif
#ifdef __MIPSEL__
asmlinkage
long
sys32_ftruncate64
(
unsigned
int
fd
,
unsigned
long
__dummy
,
int
length_lo
,
int
length_hi
)
#endif
{
{
loff_t
length
;
return
sys_ftruncate
(
fd
,
merge_64
(
a2
,
a3
));
length
=
((
unsigned
long
)
length_hi
<<
32
)
|
(
unsigned
int
)
length_lo
;
return
sys_ftruncate
(
fd
,
length
);
}
}
static
inline
long
static
inline
long
...
...
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