chdir - change working satellite directory
points to the path name of a directory.
causes the named directory to become the current working directory.
It is not possible for the root directory of the satellite file system
to be your working directory.
will fail and the current working directory will be unchanged if one
or more of the following are true:
The path name does not specify a directory. [ENOTDIR]
The named directory does not exist. [ENOENT]
The path name points to a directory on the host. [EACCES]
On successful completion, a value of 0 is returned. Otherwise, a
value of -1 is returned and
is set to indicate the error.