[Bug 253] New: poll() syscall emulation not compiled when needed

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 31 05:05:18 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=253

              Host: i386-pc-linux-uclibc
            Target: i386-pc-linux-uclibc
             Build: i386-pc-linux-uclibc
           Summary: poll() syscall emulation not compiled when needed
           Product: uClibc
           Version: 0.9.30.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at uclibc.org
        ReportedBy: michael at talamasca.ocis.net
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


Created an attachment (id=217)
 --> (https://bugs.busybox.net/attachment.cgi?id=217)
Patch to fix poll() on Linux 2.0

uClibc includes an emulation of the poll() syscall, but avoids compiling it if
it thinks the kernel has a native poll().  It presently tests this by seeing if
__NR_poll is defined.

Unfortunately, Linux 2.0.*, the one version that needs this emulation, has for
some time defined __NR_poll without actually implementing it, causing an
unpatched uClibc to provide a poll() that always returns ENOSYS.

I'm including a simple patch to fix this problem.  (The patch creates one new
header, "uClibc_khpresence.h", which is shared with my solution to another
problem, and thus contains one definition unneeded for this specific bug.)


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list