RFC: Cygwin 64 bit?

Eric Blake eblake@redhat.com
Mon Jun 27 13:12:00 GMT 2011

On 06/26/2011 06:10 AM, JonY wrote:
>>   - Do we define "long" as 32 bit or 64 bit type?
> I suggest 32bit, they'll be some awkwardness accessing w32api at the
> Cygwin backend if they're 64bit.

I very much want LLP64 to match Linux; the _only_ software that should
be accessing w32api in the cygwin backend is the cygwin dll itself,
which can take its own precautions to do correct conversions, whereas
everything compiled against the cygwin dll will be easier to port if it
remains like Linux with sizeof(long)==sizeof(void*).

I also hope that we can use this as an opportunity to move to 64-bit
time_t and NSIG of 64, even on 32-bit cygwin, which will be an ABI
change (similar to when we moved from stat to stat64 for the off_t ABI

And as long as we are considering an ABI change, should we consider
moving to 4-byte wchar_t to match Linux?

Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20110627/96507266/attachment.sig>

More information about the Cygwin-developers mailing list