Remove __ASSUME_EVENTFD2, move eventfd to syscalls.list.
commita64e3aadbf99dd99baab4b3b650eb6be68b3a4aa
authorJoseph Myers <joseph@codesourcery.com>
Thu, 17 Mar 2016 19:07:39 +0000 (17 19:07 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 17 Mar 2016 19:07:39 +0000 (17 19:07 +0000)
treeab1a3da4a14599468636906cf6aef76881d9ce3b
parent4674df40bbe2adf301fa47c8088fcb777048798b
Remove __ASSUME_EVENTFD2, move eventfd to syscalls.list.

Given current Linux kernel version requirements, we can assume the
presence of the eventfd2 syscall.  This means that __ASSUME_EVENTFD2
can be removed, and a syscalls.list entry suffices for eventfd instead
of needing a .c file.  This patch implements those changes.

Tested for x86_64 and x86 (not that that means much, given the lack of
testsuite coverage for eventfd).

* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
Remove macro.
* sysdeps/unix/sysv/linux/eventfd.c: Remove file.
* sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
entry.
ChangeLog
sysdeps/unix/sysv/linux/eventfd.c [deleted file]
sysdeps/unix/sysv/linux/kernel-features.h
sysdeps/unix/sysv/linux/syscalls.list