Tag Info

Hot answers tagged

4

This is all perfectly normal. You aren't supposed to prevent the failing library lookups from happening. execve("./hello", ["./hello"], [/* 62 vars */]) = 0 This is your program starting. Since it is dynamically linked, the first code to execute is from the dynamic loader. brk(0) = 0x85a5000 mmap2(NULL, 4096, ...


2

The file /proc/kallsyms lists all the symbols of the running kernel. By convention, system calls have a name that begin with sys_. On a 64-bit system, system calls for 32-bit programs have a name that begin with sys32_. Strictly speaking, this lists internal kernel functions, not system call, but I think that the correspondence does work (every system call ...


2

TL;DR I kept finding new alternatives when writing this answer, so I just wrote a bit of details about each of them, and made some stats. Basically, you can either: Read Gilles' answer, which provides a clean and fast way to do it (relies on /proc). Use the documentation resources. Use your system's C header files. Use the kernel source code itself. Use ...



Only top voted, non community-wiki answers of a minimum length are eligible