This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: cygipc (and PostgreSQL) XP problem resolved!


On Sat, May 10, 2003 at 01:06:01PM -0400, Charles Wilson wrote:
>Corinna Vinschen wrote:
>
>>
>>Is there actually a need to convert key_t to 64 bit?
>>
>>Corinna
>>
>
>with old 32bit key_t, cygipc uses this to create a key for a given 
>filepath and id#:
>
>  key = ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16)
>         | ((id & 0xff) << 24));
>
>Given the sizes of the various fields of st, there are obvious problems 
>with aliasing here.

But, be advised that I'm in the process of changing the inode field to
a long long so I'm not sure that we wouldn't be just pushing this off
a little further.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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