The fchdir() function is equivalent to chdir() except that the directory that is to be the new current working directory is specified by a file descriptor.