]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
microblaze: Use the correct select syscall (BZ #28883)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 16 Feb 2022 16:51:42 +0000 (13:51 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 16 Feb 2022 19:26:44 +0000 (16:26 -0300)
On Microblaze only __NR_newselect is implemented, even though kernel
advertise __NR_select on asm/unistd.h.  Since microblaze is the
only architecture that undef __ASSUME_PSELECT, the generic code
change is simpler than chaging the architecture syscall number.

Acked-by: Mark Hatle <mark.hatle@xilinx.com>
sysdeps/unix/sysv/linux/select.c

index 3bc8b0cc3d3e40484ef5317d939ce49e8a041d33..a3f0a2eba7471e53033f5da4196ab9abcc9edc90 100644 (file)
@@ -108,7 +108,7 @@ __select64 (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
       ptv32 = &tv32;
     }
 
-  int r = SYSCALL_CANCEL (select, nfds, readfds, writefds, exceptfds, ptv32);
+  int r = SYSCALL_CANCEL (_newselect, nfds, readfds, writefds, exceptfds, ptv32);
   if (timeout != NULL)
     *timeout = valid_timeval_to_timeval64 (tv32);
   return r;