So I was looking through the linux glibc source and I don\'t see where it actually does anything. The following is from io/chdir.c
but it is indicative of many
Note that the actual system calls aren't defined anywhere in the source tree - they're generated at build time from syscalls.list (linked is the one in sysdeps/unix, there are additional ones further down), a series of macros in sysdep.h (linked linux/i386), and a script that actually generates the source files.