[PATCH 2/2] Add stub for eventfd.

jc at eclis.ch jc at eclis.ch
Wed Nov 2 19:44:00 UTC 2011


From: Jean-Christian de Rivaz <jc at eclis.ch>

Warn if the enventfd() function is not implemented.

Signed-off-by: Jean-Christian de Rivaz <jc at eclis.ch>
---
 libc/sysdeps/linux/common/stubs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index 1e54903..9a0682a 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -373,6 +373,10 @@ make_stub(timerfd_settime)
 make_stub(timerfd_gettime)
 #endif
 
+#if !defined __NR_eventfd && defined __UCLIBC_LINUX_SPECIFIC__
+make_stub(eventfd)
+#endif
+
 #if !defined __NR_umount && !defined __NR_umount2 && defined __UCLIBC_LINUX_SPECIFIC__
 make_stub(umount)
 #endif
-- 
1.7.2.5



More information about the uClibc mailing list