kernel system calls

Paul Mackerras paulus at samba.org
Thu Jul 10 10:30:58 EST 2003


Collins, Steve writes:

> When I #define __KERNEL_SYSCALLS__ in my driver in order to use system
> level calls within kernel space and recompile my code I receive the
> following errors within the unistd.h header file:
>
> In function 'pause':
> 'errno' undeclared
>
> This error repeats for every system call within the #ifdef area of
> KERNEL_SYSCALLS in unistd.h.  Any comments or suggestions for a fix will
> be appreciated.

How about #include <linux/errno.h> ?  :)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list