[Issue 5209] New: posix/sys/select.d: FD_ISSET function should return bool

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 13 06:18:48 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5209

           Summary: posix/sys/select.d: FD_ISSET function should return
                    bool
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: ibuclaw at ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-11-13 06:17:34 PST ---
This is how FD_ISSET is defined on Linux

#define __FD_ISSET(d, set) \
  ((__FDS_BITS (set)[__FDELT (d)] & __FDMASK (d)) != 0)


So druntime should do the same (patch supplied). This is also a blocker for
64bit, where you would get an implicit cast from long to int message.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list