Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
29 user(s) are online (19 user(s) are browsing Forums)

Members: 0
Guests: 29

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Is Forbid() needed for SetMethod()?

Subject: Re: Is Forbid() needed for SetMethod()?
by Steady on 2019/4/9 4:24:03

@Kamelito

That dos.library note is just saying that dos.library <36 is "special" and is not set up normally due to it primarily being a way to call the internal functions supplied by Tripos.

I don't think that implies you do not need to Forbid()/Permit() when patching >=36 functions on any library.

Personally, I think it comes down to the library in question ... Some (like exec) would likely need a Disable if you change functions that can be called from interrupts, otherwise Forbid would be enough. You wouldn't want to change the function right as another program is calling it.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project