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
What you've found is a stub function for systems it's not implemented on. You need to look under the sysdeps tree for the actual implementation. The following may be of interest:
sysdeps/unix/sysv/linux
sysdeps/posix
sysdeps/i386 (or x86_64 or whatever your cpu arch is)