How do you re-export the original system call with a different name in aix?
2 answers
The syscall extension is a unique feature of AIX — it explicitly allows you to write a new kernel extension to replace the old original syscall, so that henceforth (from the moment the kernel is loaded) all syscalls are by the "old" name, and the new one is called instead. To retain a reference to an old system call, you must first remember the address before overwriting it with a new system call, which is implied in the following article "Using two kernel modules":
http://qasim.zaidi.me/2009/05/overriding-system-call-in-aix.html
More on AIX information here:
+1
a source to share
A simple cheat method is to just #define it.
If that doesn't work, have a look at LD_PRELOAD for examples, for example: http://neworder.box.sk/newsread.php?newsid=13857
0
a source to share