Linux System Call Table
11–20 of 65 posts
Re: Linux System Call Table
#12If man pages were up to date, this should be the index of chapter 2. I have discover unix with sun in the 90s and I am very nostalgic of the quality of man pages. At that time, man pages were complete and up to date. My latest frustration was with the option -m of df command. Chapter 2 should be updated each time a new version of kernel is installed.
It's very strange that adding/updating documentation isn't treated as a basic requirement for a patch that adds to or modifies Linux's public interfaces.
Re: Linux System Call Table
#13Re: Linux System Call Table
#14What is the use case for this? Is it for someone trying to write their own syscall wrappers?
The other case where this is useful is if you're wanting to write userspace assembly without calling a C library. This may be especially useful when you're writing a compiler, or if you're trying to write small shellcodes for some reason.
Re: Linux System Call Table
#15If man pages were up to date, this should be the index of chapter 2. I have discover unix with sun in the 90s and I am very nostalgic of the quality of man pages. At that time, man pages were complete and up to date. My latest frustration was with the option -m of df command. Chapter 2 should be updated each time a new version of kernel is installed.
Re: Linux System Call Table
#16Re: Linux System Call Table
#17Re: Linux System Call Table
#18Consider simple C program:
#define _GNU_SOURCE
#include
int main(){
syscall(276);
}
Strace'ing it shows the syscall used is tee, just as the reference I linked shows, and not pwritev as in OP's table.Re: Linux System Call Table
#19What is the use case for this? Is it for someone trying to write their own syscall wrappers?
Sometimes, yes, you'll need to write your own syscall wrappers. For example, there isn't a gettid (get thread ID) function in Glibc, but you can work around this by calling the syscall directly. The other case where this is useful is if you're wanting to write userspace assembly without calling a C library. This may be especially useful when you're writing a compiler, or if you're trying to write small shellcodes for…
Re: Linux System Call Table
#20What is the use case for this? Is it for someone trying to write their own syscall wrappers?
The idea behind is that Linux is only a list of syscalls, if you are able to reimplement them, you reimplement linux, you don't need anything else. On the contrary if you want to reimplement a BSD you need to reimplement their libc (and perhaps some other libraries)