delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/12/09:27:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 12 Aug 2004 15:26:51 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: cygserver shmat
Message-ID: <20040812132651.GK1819@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <1092302630 DOT 4368 DOT 3 DOT camel AT bma DOT sysgo DOT com> <20040812093246 DOT GB24822 AT cygbert DOT vinschen DOT de> <1092305627 DOT 4368 DOT 10 DOT camel AT bma DOT sysgo DOT com> <20040812104409 DOT GA28756 AT cygbert DOT vinschen DOT de> <1092312195 DOT 4368 DOT 14 DOT camel AT bma DOT sysgo DOT com> <1092313150 DOT 4368 DOT 18 DOT camel AT bma DOT sysgo DOT com> <1092314682 DOT 4368 DOT 30 DOT camel AT bma DOT sysgo DOT com>
Mime-Version: 1.0
In-Reply-To: <1092314682.4368.30.camel@bma.sysgo.com>
User-Agent: Mutt/1.4.2i

On Aug 12 14:44, bertrand marquis wrote:
> Ok i perhaps find a solution or a beginning of solution:
> 
> the getpagesize() function return a value of 4096 for the page size and
> it seems that shmat need the address to be aligned on a multiple of
> SHMLBA (655539), if instead of using getpagesize value to round the size
> i use the value of SHMLBA i can run the test program without any
> problem.
> 
> the thing is that this doesn't append under linux. In fact under linux
> SHMLBA=getpagesize=4096 so the program run perfectly without any
> problem.
> 
> Perhaps the cygwin release of getpagesize should output also SHMLBA ?

Why should it?  There's nowhere defined that getpagesize() must be equal
to SHMLBA.  In fact, that's the reason I pointed you to the open group
shmat man page.  Using getpagesize() for XSI memory alignment isn't
mentioned at all.  Align your addresses using SHMLBA and you're all set.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019