Alexandre Julliard : ntdll: Use the syscall function instead of inline assembly.

Alexandre Julliard julliard at winehq.org
Thu Dec 23 11:28:06 CST 2010


Module: wine
Branch: master
Commit: 37ae7a533c8df69789d4a3b3c66502179eacaca5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=37ae7a533c8df69789d4a3b3c66502179eacaca5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 23 16:10:18 2010 +0100

ntdll: Use the syscall function instead of inline assembly.

---

 dlls/ntdll/directory.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 865c2fa..0cfa85d 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -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
 




More information about the wine-cvs mailing list