Re: Functions for embedders to override

[email protected] (Dan Sugalski) Fri, 13 Aug 2004 12:00:29 -0400
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <a0611040bbd4293eef384@[172.24.10.164]>
At 11:07 AM +0200 8/13/04, Hans Ginzel wrote:
>On Mon, Aug 09, 2004 at 12:04:31PM -0400, Dan Sugalski wrote:
>>  When Parrot's being embedded I can see the following functions
>>  needing overriding by the embedder:
>>
>>  *) Memory: malloc, realloc, calloc, free
>>  *) Signals: handler register, Handler un-register, signal raise, alarm set
>>  *) Files: Open, close, seek, tell, read, write. (Possibly asynchronously)
>
>	lock(), flock(),....
>
>    The original functions should stay accesible to write wrappers.

Can't do that, unfortunately. The only thing available is what's in 
the table. The overrides may be done for security or integrity 
reasons (which'd be quite common in an embedding situation) which 
means that using the original versions would be a security risk. We 
shouldn't do that.
-- 
				Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[email protected]                         have teddy bears and even
                                       teddy bears get drunk