site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On May 2, 2005, at 6:47, Marco Bambini wrote: Hi All, So, if I write something like this in my KEXT: #include <sys/syscall.h> then I have a compilation error: "sys/syscall.h: No such file or directory" How can I solve this problem? Or better, is there another way to patch a system call inside a kext? There is no good way to patch system calls. Regards, Justin -- Justin C. Walker, Curmudgeon at Large Institute for General Semantics ----------- My wife 'n kids 'n dog are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. ----------- _______________________________________________ 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... I need to patch a system call using the sysent routine in a KEXT. No, you don't. It's unsupported, and if this is intended as a product, your product will continually break as new releases come out. Think of another way to do what you want. As far as I know, for a kext, I should only use headers from Kernel.framework and sys/syscall.h is a userland header... Yup; kexts are built with headers only from the kernel framework; the build does not look in "the usual places". This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker