public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14985] New: EPOLL_NONBLOCK definition erroneous
@ 2012-12-28 1:43 bugdal at aerifal dot cx
2013-01-08 18:35 ` [Bug libc/14985] " aj at suse dot de
2014-06-14 5:28 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: bugdal at aerifal dot cx @ 2012-12-28 1:43 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14985
Bug #: 14985
Summary: EPOLL_NONBLOCK definition erroneous
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: bugdal@aerifal.cx
CC: drepper.fsp@gmail.com
Classification: Unclassified
glibc's sys/epoll.h defines EPOLL_NONBLOCK for use with epoll_create1; however,
the kernel's epoll_create1 function contains the following code:
if (flags & ~EPOLL_CLOEXEC)
return -EINVAL;
Moreover, the kernel's eventpoll.h header does not define EPOLL_NONBLOCK at
all. EPOLL_NONBLOCK seems to be a glibc invention that disagrees with the
reality of the kernel and which might confuse developers attempting to use this
interface.
I believe a little more research should be done into why it was added to begin
with, and, unless there's a good reason for its existence, it should be
removed. If this flag is really intended by the glibc developers to exist, it
should be emulated in userspace by glibc using fcntl since the kernel obviously
does not accept it.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/14985] EPOLL_NONBLOCK definition erroneous
2012-12-28 1:43 [Bug libc/14985] New: EPOLL_NONBLOCK definition erroneous bugdal at aerifal dot cx
@ 2013-01-08 18:35 ` aj at suse dot de
2014-06-14 5:28 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: aj at suse dot de @ 2013-01-08 18:35 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14985
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aj at suse dot de
Resolution| |FIXED
AssignedTo|unassigned at sourceware |aj at suse dot de
|dot org |
Target Milestone|--- |2.18
--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2013-01-08 18:35:20 UTC ---
Thanks, fixed for glibc 2.18 with this commit:
commit c40ea3d9a3be8645441967cddf14645b84af5f2c
Author: Andreas Jaeger <aj@suse.de>
Date: Tue Jan 8 19:32:00 2013 +0100
BZ#14985: Remove erroneous EPOLL_NONBLOCK
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/14985] EPOLL_NONBLOCK definition erroneous
2012-12-28 1:43 [Bug libc/14985] New: EPOLL_NONBLOCK definition erroneous bugdal at aerifal dot cx
2013-01-08 18:35 ` [Bug libc/14985] " aj at suse dot de
@ 2014-06-14 5:28 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-14 5:28 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14985
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-14 5:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-28 1:43 [Bug libc/14985] New: EPOLL_NONBLOCK definition erroneous bugdal at aerifal dot cx
2013-01-08 18:35 ` [Bug libc/14985] " aj at suse dot de
2014-06-14 5:28 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).