Re: "No such file or directory"
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Mar 10, 2005, at 15:55, Carl Smith wrote: Ouch, does that mean that I cannot use functions like calloc or getifaddrs in my kernel extension code???? Yup; please reply on the list so that the thread is completed and the info is retained. Regards, Justin _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... To expand on this: you are developing code that runs in the kernel. The kernel is a limited programming environment, and usually has much more stringent resource requirements than a user-mode program has to deal with. If you want to develop code to run in the kernel, leave libc and all the other "fun" libraries behind. You can't, by and large, use them; this is because the rules of engagement are different for kernel and user code, and the assumptions for one are not valid in the other. If you think you need user-land "helper" code in your extension, then go back to the drawing board and make a decision: if you *really* need user-mode functionality, build a user-mode program to handle it. -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | It's not whether you win or lose... | It's whether *I* win or lose. *--------------------------------------*-------------------------------* This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker