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.