[comp.unix.questions] Putting stubs around library routines

mmcg@bruce.OZ (Mike McGaughey) (05/07/90)

Another malloc problem : I would like to place a semaphore
guard around malloc(), while still using the standard library routine to
do the actual allocation.  All the other library routines that call malloc()
have to use my version (easy - just link mine in first).  However,
can I call the library routine of the same name from my malloc routine?

Mike.
--
Mike McGaughey			ACSNET:	mmcg@bruce.cs.monash.oz

"Ignorance is stupid, but education causes college students"
	- P.J. O'Rourke, Republican Party Reptile.