Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xing Lin
qemu
Commits
8083a3e5
Commit
8083a3e5
authored
Mar 24, 2003
by
bellard
Browse files
dirent fixes
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@48
c046a42c-6fe2-441c-8c8c-71466251a162
parent
644c433c
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux-user/syscall.c
View file @
8083a3e5
...
...
@@ -1603,10 +1603,10 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
int
reclen
;
de
=
dirp
;
while
(
len
>
0
)
{
reclen
=
tswap16
(
de
->
d_reclen
)
;
reclen
=
de
->
d_reclen
;
if
(
reclen
>
len
)
break
;
de
->
d_reclen
=
reclen
;
de
->
d_reclen
=
tswap16
(
reclen
)
;
tswapls
(
&
de
->
d_ino
);
tswapls
(
&
de
->
d_off
);
de
=
(
struct
dirent
*
)((
char
*
)
de
+
reclen
);
...
...
@@ -1626,10 +1626,10 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
int
reclen
;
de
=
dirp
;
while
(
len
>
0
)
{
reclen
=
tswap16
(
de
->
d_reclen
)
;
reclen
=
de
->
d_reclen
;
if
(
reclen
>
len
)
break
;
de
->
d_reclen
=
reclen
;
de
->
d_reclen
=
tswap16
(
reclen
)
;
tswap64s
(
&
de
->
d_ino
);
tswap64s
(
&
de
->
d_off
);
de
=
(
struct
dirent64
*
)((
char
*
)
de
+
reclen
);
...
...
Write
Preview
Supports
Markdown
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