Skip to contentSkip to conversation

New: glibc 2.7 notes for eventfd(2)

Bug 10356 New bugme-daemon-590EEB7GvNiWaY/[email protected] 2 participants 2 messages Mar 29, 2008 – Jan 19, 2010 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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-ztI5WcYan/[email protected]
ReportedBy: [email protected]

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.

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-10356-11311-V0hAGp6uBxO456/isadD/[email protected]/

#2 lore raw

PATCH 1/1 glibc 2.7 notes for eventfd(2)

http://bugzilla.kernel.org/show_bug.cgi?id=10356

Alan <alan-qBU/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |alan-qBU/[email protected]
         Regression|---                         |No
            Summary|glibc 2.7 notes for         |[PATCH]glibc 2.7 notes for
                   |eventfd(2)                  |eventfd(2)
Signature · 7 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html