cygserver shmat

2004-08-12 Thread bertrand marquis
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 ? thanks -- Unsubscribe info:

Re: cygserver shmat

2004-08-12 Thread Corinna Vinschen
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

Re: cygserver shmat

2004-08-12 Thread bertrand marquis
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

Re: cygserver shmat

2004-08-12 Thread Corinna Vinschen
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

Re: cygserver shmat

2004-08-12 Thread bertrand marquis
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

Re: cygserver shmat

2004-08-12 Thread bertrand marquis
Le jeu 12/08/2004 14:03, bertrand marquis a crit : 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

Re: cygserver shmat

2004-08-12 Thread bertrand marquis
Le jeu 12/08/2004 14:19, bertrand marquis a crit : Le jeu 12/08/2004 14:03, bertrand marquis a crit : 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: -

Re: cygserver shmat

2004-08-12 Thread Corinna Vinschen
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