cygserver shmat

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Aug 12 13:31:00 GMT 2004


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@cygwin.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/



More information about the Cygwin mailing list