Changes the current working directory to the specified directory.
#include <unistd.h> int chdir ( const char *path);
(IN) Specifies the buffer containing the directory path.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
The chdir function causes the directory named by the path parameter to become the current working directory for all threads of a virtual machine. It becomes the starting point for path searches for pathnames not beginning with “/”.
The path parameter can be either relative to the current working directory or it can be an absolute pathname.