http://bugzilla.kernel.org/show_bug.cgi?id=10356 Summary: glibc 2.7 notes for eventfd(2) Product: Documentation Version: unspecified KernelVersion: n/a Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: man-pages AssignedTo: documentation_man-pages@xxxxxxxxxxxxxxxxxxxx ReportedBy: mrsam@xxxxxxxxxxxxxxx I tested this, and it works: --- /home/mrsam/src/man-pages/sources/manpages/man-pages-2.79/man2/eventfd.2 2008-03-03 08:25:44.000000000 -0500 +++ ./eventfd.2 2008-03-29 11:42:24.000000000 -0400 @@ -204,8 +204,28 @@ .SH VERSIONS .BR eventfd () is available on Linux since kernel 2.6.22. -Working support is provided in glibc since version 2.8. +Working support is provided in glibc since version 2.8, .\" eventfd() is in glibc 2.7, but reportedly does not build +but it's possible to create an event file descriptor with glibc 2.7 using +.BR syscall (2): +.RS +.nf + +#include <sys/syscall.h> +#include <unistd.h> + +... + +int efd=syscall(SYS_eventfd, 0, 0); + +.fi +.RE +Then use +.BR read (2) +and +.BR write (2) +with this file descriptor. +This works as long as glibc 2.7 itself was built on kernel 2.6.22, or later. .SH CONFORMING TO .BR eventfd () is Linux-specific. -- Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html