Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
37ae7a53
Commit
37ae7a53
authored
Dec 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use the syscall function instead of inline assembly.
parent
0ae38162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
directory.c
dlls/ntdll/directory.c
+1
-11
No files found.
dlls/ntdll/directory.c
View file @
37ae7a53
...
...
@@ -112,17 +112,7 @@ typedef struct
static
inline
int
getdents64
(
int
fd
,
char
*
de
,
unsigned
int
size
)
{
int
ret
;
__asm__
(
"pushl %%ebx; movl %2,%%ebx; int $0x80; popl %%ebx"
:
"=a"
(
ret
)
:
"0"
(
220
/*NR_getdents64*/
),
"r"
(
fd
),
"c"
(
de
),
"d"
(
size
)
:
"memory"
);
if
(
ret
<
0
)
{
errno
=
-
ret
;
ret
=
-
1
;
}
return
ret
;
return
syscall
(
220
/* NR_getdents64 */
,
fd
,
de
,
size
);
}
#define USE_GETDENTS
...
...
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