Re: 2G+ sysv shm segments

From: Peter Jeremy <peterjeremy_at_optushome.com.au>
Date: Wed, 17 Oct 2007 20:39:18 +1000
On 2007-Oct-16 23:53:43 +0400, Igor Sysoev <is_at_rambler-co.ru> wrote:
>> printf(" %12lu", (unsigned long)kshmptr->u.shm_segsz); or similar.
>
>Here should be %zu.

You're correct.  I wasn't aware of 'z' :-(

>However, this patch can not be commited even to 7/8, because it does not
>preserve binary compatibility for shmctl(IPC_STAT).
>
>It seems that should be new shmctl syscall.

I don't believe there is a requirement that IPC_STAT be 2 so an
alternative approach would be to change the value of IPC_STAT to
support the changed shmid_ds size (though this would also
affect semctl() and msgctl().

-- 
Peter Jeremy

Received on Wed Oct 17 2007 - 08:39:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:19 UTC