Questions tagged [syscalls]

35 questions
35
votes
6 answers

Where do you find the syscall table for Linux?

I see a lot of people online referencing arch/x86/entry/syscalls/syscall_64.tbl for the syscall table, that works fine. But a lot of others reference /include/uapi/asm-generic/unistd.h which is commonly found in the headers package. How come…
Evan Carroll
  • 30,763
  • 48
  • 183
  • 315
0
votes
1 answer

Using a file descriptor in a system call

Let's suppose that I want to use a file descriptor in a system call (the fd number would be provided via a parameter). What is to be expected if a user space program uses this system call? Where would the OS look for this specific fd? In the current…