Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Sat, 10 May 2003 13:16:29 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: cygipc (and PostgreSQL) XP problem resolved!
Message-ID: <20030510171629.GB11448@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20030507133326.GA1824@tishler.net> <3EB9A54B.8060500@ece.gatech.edu> <20030508135217.GD512@tishler.net> <3EBB22F5.4000801@ece.gatech.edu> <1052541657.1675.5.camel@localhost> <3EBC8ED0.4040906@ece.gatech.edu> <20030510072239.GA19367@cygbert.vinschen.de> <1052554219.1824.14.camel@localhost> <20030510082949.GD19367@cygbert.vinschen.de> <3EBD3179.6070004@ece.gatech.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3EBD3179.6070004@ece.gatech.edu>
User-Agent: Mutt/1.4.1i

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/

