Consolidate Linux poll implementation
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 18 Nov 2016 15:56:05 +0000 (13:56 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 3 May 2017 13:36:01 +0000 (10:36 -0300)
commitb5eede9730eccec155c2374d20d401cd032519fd
treebf36e60fe7fc710a9116fcfe8c1f2d7147e0b403
parent14ea415d042dcb934a021114c872f3ae7dc7a51c
Consolidate Linux poll implementation

This patch consolidates the poll Linux syscall implementation on
sysdeps/unix/sysv/linux/poll.c.  It basically removes poll from
auto-generation list and add a default implementation that either
call __NR_poll directly (if the kernel headers defines it) or
ppoll adjusting the timeout argument (as the generic implementation).

Checked on i686-linux-gnu, x86_64-linux-gnu, x86_64-linux-gnux32,
aarch64-linux-gnu, arm-linux-gnueabihf, and powerpc64le-linux-gnu.

* sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
* sysdeps/unix/sysv/linux/poll.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
auto-generation list.
ChangeLog
sysdeps/unix/sysv/linux/poll.c [moved from sysdeps/unix/sysv/linux/generic/poll.c with 88% similarity]
sysdeps/unix/sysv/linux/syscalls.list