cygserver shmat

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


Le jeu 12/08/2004 à 12:44, Corinna Vinschen a écrit :
> On Aug 12 12:13, bertrand marquis wrote:
> > 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 ?
> 
> Nope.  Not without knowing the actual values.  An strace output of
> the affected calls would be good.  Even better, create a simple testcase
> which allows to reproduce the behaviour.  Just the minimum of necessary
> code.
> 
> 
> Corinna


Ok,

i have made a minimum program showing the problem.
You can try specifying or not SHM_RND in the second shmat, without i
have INvalid argument error and with i have value too large for defined
data type.


thanks
bertrand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testshm.c
Type: text/x-c
Size: 980 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040812/5470a2d4/attachment.bin>
-------------- next part --------------
--
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