Is it possible to have a wrapper for syscall() ?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, I'm trying to write a wrapper for syscall() function. Basically I have an application which calls syscalls - 231, 232, 233. viz - watchevent, waitevent and modwatch. I want to intercept them and call equivalent functions. And for others i want to just call the underlying syscall(). I tried passing va_list to the underlying syscall, whose handle i obtained through RTLD_NEXT. but it works for some system calls but not for all. I read somewhere that this is possible only through assembly coding. Any ideas?? thanks and regards, Puthali _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Puthali H.B