bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/27570] New: incorrect argument type for ioctl in native m


From: kspiteri at ieee dot org
Subject: [Bug classpath/27570] New: incorrect argument type for ioctl in native methods
Date: 12 May 2006 08:43:47 -0000

In the directory native/target/generic:

In file target_generic_network.h,
in macro TARGET_NATIVE_NETWORK_SOCKET_RECEIVE_AVAILABLE,
the result of FIONREAD ioctl is stored in int.

In file target_generic_file.h,
in macro TARGET_NATIVE_FILE_AVAILABLE,
the result of FIONREAD ioctl is stored in ssize_t.

I am not sure which one is correct, but they are inconsistent and one would
probably fail on 64-bit systems where int and ssize_t have different sizes.


-- 
           Summary: incorrect argument type for ioctl in native methods
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kspiteri at ieee dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27570





reply via email to

[Prev in Thread] Current Thread [Next in Thread]