[PATCH 64bit] ssize_t

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Feb 20 09:23:00 GMT 2013

I just discovered an issue resulting from this commit:

2002-06-27  Jeff Johnston  <jjohnstn@...>

        * libc/include/sys/_types.h: Define _ssize_t as int if int is
        32-bits, otherwise define it as long.

On x86_64-cygwin (as on Linux), int is still 32 bits, but size_t is a
64bit unsigned long and ssize_t should be as large but signed.
Possible patch for newlib attached; corresponding patches for
cygwin-64bit-branch on cygwin-patches@.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-64bit-ssize_t.patch
Type: application/octet-stream
Size: 755 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20130220/a55296fb/attachment.obj>

More information about the Newlib mailing list