Re: lseek in a KEXT
Re: lseek in a KEXT
- Subject: Re: lseek in a KEXT
- From: "Justin C. Walker" <email@hidden>
- Date: Wed, 7 Aug 2002 09:19:05 -0700
On Wednesday, August 7, 2002, at 09:05 AM, David Blanton wrote:
I want to use lseek from my KEXT.
The function definition is not in unistd.h as the man page
indicates ... ergo compile error.
But, inspection of the KEXT symbol file shows lseek.
So, can someone tell me how to use lseek from my KEXT?
Can't be done. lseek is a libc function, and libc is generally not
available in kernel extensions. If you have file operations to do, use
a user-mode application, where libc is available.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.