cygserver shmat

bertrand marquis bertrand.marquis@sysgo.com
Thu Aug 12 10:41:00 GMT 2004


Le jeu 12/08/2004 à 11:32, Corinna Vinschen a écrit :
> On Aug 12 11:23, bertrand marquis wrote:
> > Hello,
> > 
> > 	i'm trying to use shmat specifying an address but each time i got the
> > error: "invalid argument".
> > in fact i need to map something just next to something previously mapped
> > without argument.
> > is this a limitation of cygserver ?
>> What address are you trying? Keep in mind that the address must be
> a multiple of SHMLBA, except you're using the SHM_RND flag. See
> http://www.opengroup.org/onlinepubs/009695399/functions/shmat.html
>> Corinna

In fact i wasn't using the SHM_RNd flag.
In details here is what i do:
- get a shared segment of with size= SIZE (SIZE multiple of SHMLBA)
- attach the segment without specifying address and storing the result
in beginaddress
- attach the segment again specifying the address: endposition=
beginaddress + SIZE
without SHM_RND in the second shmat i've got the error : invalid
argument
now that i specifie SHM_RND in the flag i have the error: value to large
for defined type ....
any idea ?
thanks
bertrand
--
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

AltStyle によって変換されたページ (->オリジナル) /