← Back to context

Comment by adrian_b

1 month ago

Those are glibc headers not Linux kernel headers.

The glibc headers do not necessarily match your current Linux kernel.

You should use the glibc headers when you use the glibc generic syscall wrappers, but otherwise you must not consider them as an authoritative source for syscalls, because they frequently do not contain all the syscalls provided by your current kernel.

> Those are glibc headers not Linux kernel headers.

You're right in principle: but more precisely, they are the kernel headers for the kernel version which the system glibc was built against. But they are actually from the kernel source, not the glibc source.