Function nix::unistd::fchdir  
pub fn fchdir(dirfd: RawFd) -> Result<()>The portability is definied by: 
#[cfg(not(target_os = "fuchsia"))]Documentation
Change the current working directory of the process to the one given as an open file descriptor (see fchdir(2)).
This function may fail in a number of different scenarios. See the man pages for additional details on possible failure cases.