mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
ntdll: Use the syscall function instead of inline assembly.
This commit is contained in:
parent
0ae3816264
commit
37ae7a533c
1 changed files with 1 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue