This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mudflap wrappers [patch]
- From: Eyal Lebedinsky <eyal at eyal dot emu dot id dot au>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: "list, gcc" <gcc at gcc dot gnu dot org>
- Date: Tue, 29 Apr 2003 09:53:48 +1000
- Subject: Re: mudflap wrappers [patch]
- Organization: Eyal at Home
- References: <3EAA54B6.31D63922@eyal.emu.id.au> <20030428184842.GC27406@redhat.com>
"Frank Ch. Eigler" wrote:
> > shmdt() does not supply the size of the object, which is needed
> > for the check and the unreg. Again I use zero size, can
> > I do better?
>
> Sure - you could use the same shmctl() trick you use in shmat().
I do not see how. shmat() had the 'shmid', shmdt() has only the
address. I was thinking that maybe I can look the object up (in
mf) and get the size that I registered before.
--
Eyal Lebedinsky (eyal at eyal dot emu dot id dot au) <http://samba.org/eyal/>