I am adding a system call in Linux. I am using Kernel 2.4.20-8.
The kernel compilation with my system call is fine. But When I compile the code calling this new system call the following message is produced.
/tmp/ccoNDmld.o(.text+0x23): In function 'myservice':
: undefined reference to 'errno'
collect2: ld returned 1 exit status
"myservice" is the new system call I have implemented.
Can someone point to the reason? And the solution to this problem. Am I missing some thing here?
I am following the "How to add a system call to linux on a i386" by Chad C.D. Clark.
Thanks in advance.