microblaze: Use the correct select syscall (BZ #28883)

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>
This commit is contained in:
Adhemerval Zanella 2022-02-16 13:51:42 -03:00
parent 790a607e23
commit bbe199b27a

View 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;