From 9ed163dc0eaebe8734c35b356c406e9eb1c68d76 Mon Sep 17 00:00:00 2001 From: Jean-Christian de Rivaz Date: Mon, 24 Oct 2011 19:07:43 +0200 Subject: Add eventfd support. Hello, I whould like to share this simple patch that add the eventfd call to uClibc. Please review so it can be accepted to be merged. Jean-Christian Signed-off-by: Jean-Christian de Rivaz Signed-off-by: Carmelo Amoroso --- libc/sysdeps/linux/common/eventfd.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libc/sysdeps/linux/common/eventfd.c (limited to 'libc/sysdeps/linux/common/eventfd.c') diff --git a/libc/sysdeps/linux/common/eventfd.c b/libc/sysdeps/linux/common/eventfd.c new file mode 100644 index 000000000..cc3f3f0f7 --- /dev/null +++ b/libc/sysdeps/linux/common/eventfd.c @@ -0,0 +1,18 @@ +/* vi: set sw=4 ts=4: */ +/* + * eventfd() for uClibc + * + * Copyright (C) 2011 Jean-Christian de Rivaz + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include +#include + +/* + * eventfd() + */ +#ifdef __NR_eventfd +_syscall2(int, eventfd, int, count, int, flags) +#endif -- cgit v1.2.3