This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: WIN-28: fix POSIX file descriptor numbering assumptions


Adam Megacz wrote:

>ok to commit?
>
>  - a
>
>2002-02-25  Adam Megacz  <adam@xwt.org>
>
>        * java/io/FileDescriptor.java: We now use getFD**().
>        * java/io/natFileDescriptorWin32.cc (getFDin, getFDout,
>        getFDerr): Added these.
>        * java/io/natFileDescriptorPosix.cc (getFDin, getFDout,
>        getFDerr): Added these.
>        * java/io/natFileDescriptorEcos.cc (getFDin, getFDout,
>        getFDerr): Added these.
>

Is a file descriptor on windows really an int, or is it a pointer? If 
its the latter, I don't think we should cast it to an int because it 
will break on 64-bit.

I recall seeing a patch from Jeff a long time ago to fix FileDescriptor 
to be more portable and not make the POSIX file-descriptor-is-an-int 
assumption, but it never got checked in.

regards

Bryce.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]