Re: System call problem

From: Josef E. Galea
Date: Sat Feb 26 2005 - 13:46:51 EST


Steven Rostedt wrote:

On Sat, 2005-02-26 at 15:17 +0100, Josef E. Galea wrote:



I compiled and booted the kernel and am trying to build a user space application that uses my system call, however gcc is returning this error:
/tmp/cc4zgzUr.o(.text+0x4e): In functiono `get_rmt_paging':
: undefined reference to `errno'




Where you defined your system call in the user space program (ie. where
you declared your _syscall macro), did you also include <errno.h>?

-- Steve




I included <linux/errno.h> and it didn't solve the problem. Now i included <errno.h> and it did. Thanks for you help!

Josef
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/