Is it possible to have a wrapper for syscall() ?
Is it possible to have a wrapper for syscall() ?
- Subject: Is it possible to have a wrapper for syscall() ?
- From: "Puthali H.B" <email@hidden>
- Date: Fri, 02 Jun 2006 01:39:16 -0600
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden