Re: bug: struct cmsghdr does not match system on cygwin64

2015-01-08 Thread Corinna Vinschen
On Dec 29 14:14, Kenton Varda wrote: > On Mon, Dec 29, 2014 at 1:34 PM, Marco Atzeri wrote: > > the 4 byte shift is likely due to > > > > SIZE_T -> ULONG_PTR -> unsigned __int3264 > > Yes, exactly. > > So, cygwin/socket.h's struct cmsghdr definition needs to be fixed to match. Since nothing in

Re: bug: struct cmsghdr does not match system on cygwin64

2014-12-29 Thread Kenton Varda
On Mon, Dec 29, 2014 at 1:34 PM, Marco Atzeri wrote: > the 4 byte shift is likely due to > > SIZE_T -> ULONG_PTR -> unsigned __int3264 Yes, exactly. So, cygwin/socket.h's struct cmsghdr definition needs to be fixed to match. -Kenton -- Problem reports: http://cygwin.com/problems.html FAQ

Re: bug: struct cmsghdr does not match system on cygwin64

2014-12-29 Thread Marco Atzeri
On 12/29/2014 9:48 PM, Kenton Varda wrote: Marco Atzeri wrote: If I am not wrong, for 64bit, on windows sizeof (SIZE_T) =4 while on cygwin sizeof(size_t)=8 sizeof(SIZE_T) == 8 on Win64. The purpose of SIZE_T is to be the same size as a pointer: http://msdn.microsoft.com/en-us/library/cc4419

Re: bug: struct cmsghdr does not match system on cygwin64

2014-12-29 Thread Kenton Varda
Marco Atzeri wrote: > If I am not wrong, for 64bit, > on windows sizeof (SIZE_T) =4 > while on cygwin sizeof(size_t)=8 sizeof(SIZE_T) == 8 on Win64. The purpose of SIZE_T is to be the same size as a pointer: http://msdn.microsoft.com/en-us/library/cc441980.aspx To be clear, I am actually observ

Re: bug: struct cmsghdr does not match system on cygwin64

2014-12-28 Thread Marco Atzeri
On 12/29/2014 6:03 AM, Kenton Varda wrote: Hello Cygwin, Cygwin defines 'struct cmsghdr' (see recvmsg(2)) as follows (cygwin/socket.h): struct cmsghdr { socklen_t cmsg_len; /* Length of cmsghdr + data */ int cmsg_level; /* Protocol