This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mudflap wrappers [patch]


"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/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]