In my last job interview I was asked what seems to be a very straight forward simple question:
Q: In which library syscall (The one is kernel space not the wrapper in libc) is implemented?
A: I answered <unistd.h>
The interviewer told me that it's wrong and he is asking in which library it's implemented not in which header file it's declared.
Why is my answer false, what's the correct answer?
I searched the web for hours and nothing found at all, even writing man 2 syscall
in shell gives:
#include <unistd.h>
#include <sys/syscall.h> /* For SYS_xxx definitions */
long syscall(long number, ...);