Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: cygserver shmat From: bertrand marquis To: cygwin In-Reply-To: <20040812093246.GB24822@cygbert.vinschen.de> References: <1092302630 DOT 4368 DOT 3 DOT camel AT bma DOT sysgo DOT com> <20040812093246 DOT GB24822 AT cygbert DOT vinschen DOT de> Content-Type: text/plain; charset=UTF-8 Organization: SYSGO AG Message-Id: <1092305627.4368.10.camel@bma.sysgo.com> Mime-Version: 1.0 Date: 12 Aug 2004 12:13:47 +0200 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on donald.sysgo.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.63 X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.27.0.4; VDF: 6.27.0.7; host: mailgate.sysgo.de) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i7CAEL10028028 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/