yet another ugly legacy syscall rename...
authorRich Felker <dalias@aerifal.cx>
Tue, 15 Feb 2011 10:52:27 +0000 (05:52 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 15 Feb 2011 10:52:27 +0000 (05:52 -0500)
arch/i386/syscall.h
src/select/select.c

index 8df9b1b98aea9b00822858fab345c6df9c3f3c7f..c87401f34bb46fd9bd523d09772f8d392293ed05 100644 (file)
@@ -500,9 +500,14 @@ static inline long syscall6(long n, long a1, long a2, long a3, long a4, long a5,
 #define __NR_fstatat __NR_fstatat64
 #define __NR_pread __NR_pread64
 #define __NR_pwrite __NR_pwrite64
+
 #undef __NR_getrlimit
 #define __NR_getrlimit __NR_ugetrlimit
 
+#undef __NR_select
+#define __NR_select __NR__newselect
+
+
 #define __SC_socket      1
 #define __SC_bind        2
 #define __SC_connect     3
index a604d094ca1133e0a196a70b9114bbcf1786c540..b3946635f9d85d3cb2c8e37046fd73268912b4e4 100644 (file)
@@ -6,7 +6,7 @@ int select(int n, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv)
 {
        int r;
        CANCELPT_BEGIN;
-       r = syscall5(__NR__newselect, n, (long)rfds, (long)wfds, (long)efds, (long)tv);
+       r = syscall5(__NR_select, n, (long)rfds, (long)wfds, (long)efds, (long)tv);
        CANCELPT_END;
        return r;
 }