× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: hooking the sept
  • From: "Leif Svalgaard" <leif@xxxxxxxx>
  • Date: Thu, 26 Apr 2001 10:04:36 -0500

 
can an mi pgmr hook the sept, intercepting system calls, in a similar manner as interupts are hooked on a pc?
===> short answer: yes
 
Does the following scenario work?
 
1. the sept is a permanent system object, a space?
===> yes, type/subtype 19C3, name QINSEPT in QSYS
 
2. the sept space can be duplicated?  by CrtDupObj?
===> CrtDupObj does not recognize the object type x'19C3'
 
 by creating a user space called MySept and using CPYBWP to copy the contents of Sept to MySept?
===>this could work
 
3. when a job starts, a spcptr in the pco is set to the Sept?
===> this too could work
 
4. This pco spcptr is used as the base pointer for all subsequent access to the sept?
 
5. a job could use CPYBWP to change the spcptr in the pco to point to MySept instead of the real Sept?
===> this could work
 
6. you are then in mi heaven, able to intercept all sorts of system calls?
===> you can also simply change the SEPT directly. However that will not work from
V5R1 on, where the SEPT is write-protected.
 
 
Thanks for the help,
Steve
 
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.