fchdir() is identical to chdir(), the only difference is that the directory is given as an open file descriptor.
fchdir() is identical to chdir(); the only difference is that the directory is given as an open file descriptor.