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]

mudflap wrappers [patch]


This time the patch is here, I will update it from time to time:
	http://users.bigpond.net.au/eyal/

I finished adding the wrappers that my applications use, except for
the pthreads suit. It is still only minimally tested, many wrappers
were not yet used even once.

It is rather evident that there are some issues:

opendir() and friends use 'DIR *' which is never a completed
	type, so how should I check this pointer? I use a size
	of zero - is this "The Right Way"?

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?

In general, when a new object shows up I check it with WRITE mode
to ensure mf knows it was written to. Any problem with this? Is
there a better way?

I am registering stdin/out/err at init time, I think this is OK.
I am not unreg'ing it just yet.


Also - I will run the copyright story by my employer, I do not
expect any drama.


Finally, in case I failed to make it absolutely clear, if anyone
can get pthreads working, or explain how to do it...

--
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]