public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "qrczak at knm dot org dot pl" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/4525] New: epoll_pwait broken
Date: Sun, 20 May 2007 22:51:00 -0000	[thread overview]
Message-ID: <20070520235056.4525.qrczak@knm.org.pl> (raw)

epoll_pwait doesn't work at all. It's because the syscall takes 6 parameters
while glibc supplies only 5.

This is glibc-2.6, kernel-2.6.20.

---- Test case 1 ----

#include <sys/epoll.h>
#include <stdio.h>
#include <errno.h>

int main(void) {
   int fd;
   struct epoll_event events[16];
   sigset_t sigs;
   int status;
   fd = epoll_create(16);
   sigemptyset(&sigs);
   status = epoll_pwait(fd, events, 16, 1000, &sigs);
   printf("%d %s\n", status, strerror(errno));
   return 0;
}

Result: -1 Invalid argument

---- Test case 2 ----

#define epoll_pwait epoll_pwaitx
#include <sys/epoll.h>
#undef epoll_pwait
...
   status = epoll_pwait(fd, events, 16, 1000, &sigs, 8);

Result: 0 Success

-- 
           Summary: epoll_pwait broken
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: qrczak at knm dot org dot pl
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: athlon-pld-linux
  GCC host triplet: athlon-pld-linux
GCC target triplet: athlon-pld-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=4525

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


             reply	other threads:[~2007-05-20 22:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-20 22:51 qrczak at knm dot org dot pl [this message]
2007-05-22 15:32 ` [Bug libc/4525] " jakub at redhat dot com
2007-05-24 19:56 ` qrczak at knm dot org dot pl
2007-07-12 13:31 ` cvs-commit at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070520235056.4525.qrczak@knm.org.pl \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).