Saturday, September 20, 2008

System calls to Linux kernel

System call provides an interface to user-space processes to interact with kernel. This interface gives applications to access hardware and other operating system resources. This article gives you a good introduction to implement system calls in i 386 architecture.

It seems that _syscallX macros have been removed from "unistd.h". Hence, we have to use syscall available from libc.

1 comment:

Unknown said...

If your using an x86_64 architecture all you have to do is add the value to the unistd_64.h and it will make the syscall table for you in compile time.